Displaying 1 result from an estimated 1 matches for "snipety".
2009 Jun 03
3
System V Init Script
...gain, entering "/etc/init.d/my_app start"
immediately after fires it up straight away so there is no problem there;
can someone suggest a better way as my scripting is very begginnerish (if
thats a word) and I don't doubt for a second I am doing this in a very
inefficient manner:
<snipety snip snip>
restart)
echo -n "Stopping my_app: "
pgrep my_app | while read PIDS; do # I have chosen this method because
my_app spawns various child processes
kill -9 $PIDS # and they all need to DIE!
(Killing the parent process would kill the child pro...