Files
webgui/emhttp/plugins/dynamix/scripts/reload_services
Tom Mortensen f9ec00b488 repo reorg
2023-06-02 12:49:33 -07:00

11 lines
243 B
Bash
Executable File

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