rename reload.sh to ctl, fixes #1487

This commit is contained in:
j 2013-04-28 02:24:19 +00:00
commit 03bebfd623
3 changed files with 8 additions and 10 deletions

14
ctl Executable file
View 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