mirror of
https://github.com/unraid/webgui.git
synced 2026-01-04 16:40:21 -06:00
13 lines
252 B
Bash
Executable File
13 lines
252 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
|
|
if /etc/rc.d/rc.$cmd update; then
|
|
/etc/rc.d/rc.$cmd reload >/dev/null 2>&1
|
|
fi
|
|
done
|
|
exit 0
|