pandora/reload.sh

13 lines
270 B
Bash
Executable file

#!/bin/sh
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