[start]command:/bin/cshparameters:-c '%s'type:scriptdescription:run custom scriptmessage:run script
service configd restart
[reload]command:/runner.shparameters:%s %s %s %s %s %s %s %s %s %stype:script_outputmessage:running command "%s %s %s %s %s %s %s %s %s %s"description:Run custom command 👍
user=myadminuserif [ "$(echo $1 | cut -b 1)" == "@" ]; then user=$(echo $1 | cut -b 2-16) shiftfiecho "Executing '$@' as $user" >> $0.logsec=$(date +%s)sudo -n -u $user $@ >> $0.logexitcode=$?sec=$(expr $(date +%s) - $sec)echo "Finished in $sec sec and $exitcode code" >> $0.logexit $exitcode