diff options
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 |