From 5d33f2fb4e49f6bfd6f14a6577178c88eb33d0fd Mon Sep 17 00:00:00 2001 From: Joseph Snow Date: Tue, 15 Nov 2011 09:21:10 -0700 Subject: [PATCH] updated start/stop scripts to run form /etc/rc.local (without sudo) --- stop | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stop b/stop index 59e6492..371b8ce 100755 --- a/stop +++ b/stop @@ -3,7 +3,9 @@ ps waux | grep node | grep -v grep echo "stopping ..." -sudo forever stopall +if [ "$(id -u)" != "0" ]; then + sudo forever stopall +fi forever stopall sleep 3 -- 2.25.1