diff options
author | Julien Freyermuth | 2016-08-16 14:07:23 +0200 |
---|---|---|
committer | Julien Freyermuth | 2016-08-16 14:07:23 +0200 |
commit | 34832c5ee27f7df2292cf315d1a6b923ce099857 (patch) | |
tree | c7f6cd84ecd1202e8694cc470296f478776d8845 /pingormail.install | |
parent | a4aed7e2271fabcbb84cbfd019dbf6a65a038be2 (diff) | |
download | aur-34832c5ee27f7df2292cf315d1a6b923ce099857.tar.gz |
Adding deamon mode, status capability
Diffstat (limited to 'pingormail.install')
-rw-r--r-- | pingormail.install | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pingormail.install b/pingormail.install index 6711dd38d42f..480521e841af 100644 --- a/pingormail.install +++ b/pingormail.install @@ -11,6 +11,9 @@ post_install() { echo "Adding pingormail in systemctl if you want always use it:" echo " systemctl enable pingormail" echo " systemctl start pingormail" + echo "Adding pingormail.timer in systemctl if you want use it in onshot mode:" + echo " systemctl enable pingormail.timer" + echo " systemctl start pingormail.timer" true } @@ -26,8 +29,10 @@ pre_remove() { pkgname=pingormail # Remove symlink in systemd systemctl disable "$pkgname" + systemctl disable "$pkgname".timer # Stop server systemctl stop "$pkgname" + systemctl stop "$pkgname".timer # Reload systemctl systemctl daemon-reload |