forked from 0x2620/pandora
rename reload.sh to ctl, fixes #1487
This commit is contained in:
parent
dd72842dd1
commit
03bebfd623
3 changed files with 8 additions and 10 deletions
14
ctl
Executable file
14
ctl
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
if [ -z "$1" ]; then
|
||||
echo "Usage: $0 (start|stop|restart|reload)"
|
||||
exit 1
|
||||
else
|
||||
action="$1"
|
||||
fi
|
||||
if [ `whoami` != 'root' ]; then
|
||||
echo you have to be root or run $0 with sudo
|
||||
exit 1
|
||||
fi
|
||||
for service in pandora pandora-tasks pandora-encoding pandora-cron; do
|
||||
service $service $action
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue