2013-02-21 06:55:49 +00:00
|
|
|
#!/bin/sh
|
2013-04-18 15:26:52 +00:00
|
|
|
if [ `whoami` != 'root' ]; then
|
|
|
|
echo you have to be root or run with sudo
|
|
|
|
exit 1
|
|
|
|
fi
|
2013-04-21 15:59:18 +00:00
|
|
|
if [ -z "$1" ]; then
|
|
|
|
action=reload
|
|
|
|
else
|
|
|
|
action="$1"
|
|
|
|
fi
|
2013-02-21 06:55:49 +00:00
|
|
|
for service in pandora pandora-tasks pandora-encoding pandora-cron; do
|
2013-04-21 15:59:18 +00:00
|
|
|
service $service $action
|
2013-02-21 06:55:49 +00:00
|
|
|
done
|