mirror of
https://github.com/unraid/webgui.git
synced 2025-12-31 14:40:36 -06:00
23 lines
336 B
Bash
Executable File
23 lines
336 B
Bash
Executable File
#!/bin/bash
|
|
SERVICES="rpc nfsd ntpd nginx sshd avahidaemon samba"
|
|
|
|
# run & log functions
|
|
. /etc/rc.d/rc.runlog
|
|
|
|
queue(){
|
|
atq | grep -Pom1 '^\d+'
|
|
}
|
|
|
|
JOB=$(queue)
|
|
if [[ -n $JOB ]]; then
|
|
atrm $JOB 2>/dev/null
|
|
log "execute queued job $JOB"
|
|
else
|
|
exit 0
|
|
fi
|
|
|
|
for cmd in $SERVICES; do
|
|
/etc/rc.d/rc.$cmd update &>/dev/null
|
|
done
|
|
exit 0
|