diff --git a/RHL6/NVDARemoteServerd b/RHL6/NVDARemoteServerd index b635e49..2c5fc33 100644 --- a/RHL6/NVDARemoteServerd +++ b/RHL6/NVDARemoteServerd @@ -27,12 +27,12 @@ fi # Carry out specific functions when asked to by the system case "$1" in start) - su $USER -c "$BIN start --pidfile=/var/run/NVDARemoteServer/NVDARemoteServer.pid" + su $USER -c "$BIN start --pidfile=/var/run/NVDARemoteServer/NVDARemoteServer.pid" -s /bin/sh touch /var/lock/subsys/nvdaremoteserver exit $? ;; stop) - su $USER -c "$BIN stop --pidfile=/var/run/NVDARemoteServer/NVDARemoteServer.pid" + su $USER -c "$BIN stop --pidfile=/var/run/NVDARemoteServer/NVDARemoteServer.pid" -s /bin/sh rm -f /var/lock/subsys/nvdaremoteserver exit $? ;; diff --git a/debian7/nvda-remote-server_1.7/etc/init.d/NVDARemoteServer b/debian7/nvda-remote-server_1.7/etc/init.d/NVDARemoteServer index a266832..782ea02 100644 --- a/debian7/nvda-remote-server_1.7/etc/init.d/NVDARemoteServer +++ b/debian7/nvda-remote-server_1.7/etc/init.d/NVDARemoteServer @@ -20,10 +20,10 @@ USER=nvdaremoteserver # Carry out specific functions when asked to by the system case "$1" in start) - su $USER -c "$BIN start --pidfile=/var/run/NVDARemoteServer/NVDARemoteServer.pid" + su $USER -c "$BIN start --pidfile=/var/run/NVDARemoteServer/NVDARemoteServer.pid" -s /bin/sh ;; stop) - su $USER -c "$BIN stop --pidfile=/var/run/NVDARemoteServer/NVDARemoteServer.pid" + su $USER -c "$BIN stop --pidfile=/var/run/NVDARemoteServer/NVDARemoteServer.pid" -s /bin/sh ;; restart) $0 stop || exit 1