From a6b232b702176477f75f357ea9e3d06762241f1d Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 21 Apr 2013 15:59:18 +0000 Subject: [PATCH] add option to pass action to reload, i.e. restart/stop/start --- reload.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/reload.sh b/reload.sh index 5f3017b2e..c5943b9f9 100755 --- a/reload.sh +++ b/reload.sh @@ -3,6 +3,11 @@ 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 reload + service $service $action done