Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Shellscript Program Restart Code help!!
Old 10-12-2004, 11:47 AM Shellscript Program Restart Code help!!
Junior Talker

Posts: 1
Trades: 0
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.
pww2250 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to Shellscript Program Restart Code help!!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.35514 seconds with 12 queries