Files
webgui/emhttp/plugins/dynamix/scripts/reload_services

12 lines
206 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
done
exit 0