pandora/reload.sh

14 lines
270 B
Bash
Raw Normal View History

#!/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
if [ -z "$1" ]; then
action=reload
else
action="$1"
fi
for service in pandora pandora-tasks pandora-encoding pandora-cron; do
service $service $action
done