|
When I run this script that line fails to shutdown wastesrv. Im guessing there is an ownership issue here, how do i take care of that? The task manager is reporting that the owner of waste when this script is run is apache, the web server im running.
#!/bin/sh
# Kill wastesrv
killall -9 wastesrv
# Start it up again
cd /waste
./wastesrv -i > /dev/null &
echo Restart Successful
Basically what is going on here is I call this script from a php page. My intent is for the service wastesrv to restart. While the "# Start it up again" portion of the script works fine the "# Kill wastesrv" portion is not working. What ends up happening when this php page is visitied is a new instance of wastesrv is started up without the previous being closed down.
|