Updated logger registration

This commit is contained in:
bergware
2023-10-03 10:21:19 +02:00
parent b51719bce4
commit ac0e67eeac
15 changed files with 81 additions and 47 deletions
@@ -4,9 +4,13 @@ SERVICES="rpc nfsd ntpd nginx sshd avahidaemon samba"
if [[ -n $1 ]]; then
[[ ! -e $1 ]] && touch $1 || exit 0
fi
# run & log functions
. /etc/rc.d/rc.runlog
for cmd in $SERVICES; do
if /etc/rc.d/rc.$cmd update; then
logger -t network -- "reload service: $cmd"
log "$cmd"
/etc/rc.d/rc.$cmd reload >/dev/null 2>&1
fi
done