monitnotify.service_sample: changed reload and stop to parameter call

This commit is contained in:
Oliver Schraml 2019-01-11 10:20:51 +01:00
parent 109fc2f265
commit b8911a2330
1 changed files with 3 additions and 2 deletions

View File

@ -7,9 +7,10 @@ Before=monit.service
User=yourmonitoringmailuser
Group=yourmonitoringmailuser
Type=simple
PIDFile=/var/run/monitnotifyer.pid
ExecStart=/home/yourmonitoringmailuser/monitnotifyer/monitnotifyer.sh
ExecReload=/bin/kill -HUP $MAINPID
ExecStop=/bin/kill -HUP $MAINPID
ExecReload=/home/yourmonitoringmailuser/monitnotifyer/monitnotifyer.sh -a stop ; /bin/kill -HUP $MAINPID
ExecStop=/home/yourmonitoringmailuser/monitnotifyer/monitnotifyer.sh -a stop ; /bin/kill -HUP $MAINPID
KillMode=process
StandardOutput=null
Restart=on-failure