simkied Posted October 7, 2010 Report Share Posted October 7, 2010 Sorry the subject probably doesn't make as much sense, I didn't know how to word it to be honest, I'm definitely a linux *noob* Anyhow, I have utserver installed on my CentOS and it works fine when I run it via. SSH (this is a remote host, not local machine). I just go ./utserver and it boots up, then when I access the webUI it's all nice and dandy. However, the moment I close my SSH client the script turns off/stops and the WebUI doesn't work anymore etc.So I have two questions... first, how do I run the utserver from the server itself, so that when I disconnect my SSH client the utserver will continue running. And #2, how do I have the utserver set up so that if I ever reboot the server utserver will automatically start again?Please advise. Other than that, script working awesome. Thanks! Link to comment Share on other sites More sharing options...
simkied Posted October 7, 2010 Author Report Share Posted October 7, 2010 P.S. I tried this script, http://www.utorrent.com/forum/viewtopic.php?pid=528328, but it doesn't work because CentOS doesn't have start-stop-daemon since I believe that's only for Debian-style Linux?Not sure what the solution would be here... Link to comment Share on other sites More sharing options...
mcdonald Posted October 7, 2010 Report Share Posted October 7, 2010 Anyhow, I have utserver installed on my CentOS and it works fine when I run it via. SSH (this is a remote host, not local machine). I just go ./utserver and it boots up, then when I access the webUI it's all nice and dandy. However, the moment I close my SSH client the script turns off/stops and the WebUI doesn't work anymore etc.So I have two questions... first, how do I run the utserver from the server itself, so that when I disconnect my SSH client the utserver will continue running.$ man nohup Link to comment Share on other sites More sharing options...
The Mighty Buzzard Posted October 9, 2010 Report Share Posted October 9, 2010 Try this instead:./utserver &disown %1 Link to comment Share on other sites More sharing options...
Tarmil Posted October 9, 2010 Report Share Posted October 9, 2010 Try this instead:./utserver &disown %1This %1 depends on whether you have launched something else before utserver (then it would be %2, etc).Like mcdonald, I recommend:nohup ./utserver & Link to comment Share on other sites More sharing options...
The Mighty Buzzard Posted October 9, 2010 Report Share Posted October 9, 2010 This %1 depends on whether you have launched something else before utserver (then it would be %2, etc).Like mcdonald, I recommend:./utserver &disown %1Fair enough. I just prefer to disown rather than nohup, though I suppose using screen would be more versatile than either. Link to comment Share on other sites More sharing options...
smkied Posted October 11, 2010 Report Share Posted October 11, 2010 Thanks a lot guys, I did the nohup and does exactly what I needed.Cheers :-) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.