Skip to content

Commit

Permalink
Updated old init scripts to work with the sh shell, instead of /bin/f…
Browse files Browse the repository at this point in the history
…alse
  • Loading branch information
jmdaweb committed Aug 31, 2018
1 parent 86981ab commit 7b07dfd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions RHL6/NVDARemoteServerd
Original file line number Diff line number Diff line change
Expand Up @@ -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 $?
;;
Expand Down
4 changes: 2 additions & 2 deletions debian7/nvda-remote-server_1.7/etc/init.d/NVDARemoteServer
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7b07dfd

Please sign in to comment.