mirror of
https://github.com/unraid/webgui.git
synced 2026-05-06 12:21:34 -05:00
services: add logging
This commit is contained in:
@@ -4,9 +4,9 @@ SERVICES="rpc nfsd ntpd nginx sshd avahidaemon samba"
|
||||
if [[ -n $1 ]]; then
|
||||
[[ ! -e $1 ]] && touch $1 || exit 0
|
||||
fi
|
||||
logger -t network "reload services: ${1:-direct}"
|
||||
for cmd in $SERVICES; do
|
||||
if /etc/rc.d/rc.$cmd update; then
|
||||
logger -t network "reload service: $cmd"
|
||||
/etc/rc.d/rc.$cmd reload >/dev/null 2>&1
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user