diff options
author | Alexey D | 2019-03-03 08:53:09 +0300 |
---|---|---|
committer | Alexey D | 2019-03-03 08:53:09 +0300 |
commit | 96daf5ea66576603e842e75bc1d4f66be00fd51b (patch) | |
tree | 1bc15cf27c297b957b2f8eb8ae27f4c32155b5b6 /syslog-ng.rc | |
parent | cd8de4a7225909b000afafb647adb42cff643354 (diff) | |
download | aur-96daf5ea66576603e842e75bc1d4f66be00fd51b.tar.gz |
use syslog-ng-ctl to stop and reload a daemon
Diffstat (limited to 'syslog-ng.rc')
-rw-r--r-- | syslog-ng.rc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/syslog-ng.rc b/syslog-ng.rc index f32b56559c1a..53a09dee5446 100644 --- a/syslog-ng.rc +++ b/syslog-ng.rc @@ -35,7 +35,7 @@ case $1 in ;; stop) stat_busy "Stopping Syslog-NG" - if [[ $PID ]] && kill $PID &>/dev/null; then + if [[ $PID ]] && syslog-ng-ctl stop &>/dev/null; then rm_daemon syslog-ng stat_done else @@ -49,7 +49,7 @@ case $1 in stat_fail else checkconfig - if kill -HUP $PID &>/dev/null; then + if syslog-ng-ctl reload &>/dev/null; then stat_done else stat_fail |