Revert "Revised service reload functionality"

This reverts commit fa3532e46f.
This commit is contained in:
bergware
2023-06-19 06:45:49 +02:00
parent fa3532e46f
commit 64c5690b06
2 changed files with 4 additions and 5 deletions
@@ -2,10 +2,11 @@
SERVICES="sshd avahidaemon samba rpc nfsd ntpd nginx"
job=/tmp/atjob.tmp
[[ -n $1 && -e $job ]] && exit 0
touch $job
for cmd in $SERVICES; do
if /etc/rc.d/rc.$cmd update; then
/etc/rc.d/rc.$cmd reload >/dev/null 2>&1
fi
done
rm -f $job
exit 0