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
|
@ -1,13 +1,14 @@
|
|||
#!/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
|
||||
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
|
|
@ -8,9 +8,6 @@
|
|||
create 0640 pandora pandora
|
||||
sharedscripts
|
||||
postrotate
|
||||
service pandora reload
|
||||
service pandora-tasks reload
|
||||
service pandora-encoding reload
|
||||
service pandora-cron reload
|
||||
/srv/pandora/ctl reload
|
||||
endscript
|
||||
}
|
||||
|
|
|
@ -52,7 +52,7 @@ repos = {
|
|||
}
|
||||
|
||||
def reload_notice(base):
|
||||
print '\nYou might need to restart pandora to finish the update:\n\t"sudo %s/reload.sh"\n' % base
|
||||
print '\nYou might need to restart pandora to finish the update:\n\t"sudo %s/ctl reload"\n' % base
|
||||
|
||||
if __name__ == "__main__":
|
||||
base = os.path.normpath(os.path.abspath(os.path.dirname(__file__)))
|
||||
|
|
Loading…
Reference in a new issue