Files
webgui/emhttp/plugins/dynamix/scripts/reload_services
2024-10-22 13:32:10 -07:00

12 lines
210 B
Bash
Executable File

#!/bin/bash
SERVICES="rpc nfsd ntpd nginx sshd avahidaemon samba"
if [[ -n $1 ]]; then
[[ ! -e $1 ]] && touch $1 || exit 0
fi
for cmd in $SERVICES; do
/etc/rc.d/rc.$cmd update >/dev/null 2>&1
done
exit 0