Files
webgui/plugins/dynamix/scripts/reload_services
2023-05-27 11:09:53 +02: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