From 49ab537be83b0fbbb06fe68469bbbdcf68fed81a Mon Sep 17 00:00:00 2001 From: DanB Date: Tue, 14 Jan 2014 10:09:22 +0100 Subject: [PATCH] Init script fixups --- pkg/debian/cgrates.default | 2 +- pkg/debian/cgrates.init | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/debian/cgrates.default b/pkg/debian/cgrates.default index 4e7add309..dc9578cec 100644 --- a/pkg/debian/cgrates.default +++ b/pkg/debian/cgrates.default @@ -2,7 +2,7 @@ # start CGRateS init.d script? # starts with "true" -ENABLE=true +ENABLE=false # Start with specific user/group #USER=cgrates diff --git a/pkg/debian/cgrates.init b/pkg/debian/cgrates.init index 0c0834c81..c16d528be 100644 --- a/pkg/debian/cgrates.init +++ b/pkg/debian/cgrates.init @@ -72,7 +72,7 @@ do_stop() # 1 if daemon was already stopped # 2 if daemon could not be stopped # other if a failure occurred - start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME + start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE RETVAL="$?" [ "$RETVAL" = 2 ] && return 2 # Wait for children to finish too if this is a daemon that forks