mirror of
https://github.com/unraid/webgui.git
synced 2026-02-28 05:09:57 -06:00
/etc/rc.d/rc.rsyslogd: check status before reload
This commit is contained in:
@@ -74,8 +74,12 @@ rsyslogd_restart(){
|
||||
rsyslogd_reload(){
|
||||
log "Reloading $DAEMON..."
|
||||
local REPLY
|
||||
REPLY="Reloaded"
|
||||
run killall -HUP --ns $$ rsyslogd || REPLY="Failed"
|
||||
if ! rsyslogd_running; then
|
||||
REPLY="Not running"
|
||||
else
|
||||
REPLY="Reloaded"
|
||||
run killall -HUP --ns $$ rsyslogd || REPLY="Failed"
|
||||
fi
|
||||
log "$DAEMON... $REPLY."
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user