monitnotify.service_sample: changed reload and stop to parameter call
This commit is contained in:
parent
109fc2f265
commit
b8911a2330
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue