Results 1 to 2 of 2
I've got a program running on my ubuntu 7.04 server. I want the server to run "perl /opt/HoTTProxy/HoTTProxy.pl -e" with root permissions every time the computer starts up. I've already ...
- 09-23-2007 #1Linux Newbie
- Join Date
- Jun 2006
- Posts
- 150
Run HoTTProxy at startup?
I've got a program running on my ubuntu 7.04 server. I want the server to run "perl /opt/HoTTProxy/HoTTProxy.pl -e" with root permissions every time the computer starts up. I've already tried editing crontab with root privileges, but adding and @restart line didn't seem to do it. How do I get this proxy server to run at startup?
- 09-25-2007 #2
I'm not to familiar with the Debian based boot process, so I cannot provide you with a great level of detail. But, in general terms, this is the way I do it:
Add a rc.script_to_run to your bootscript directory. (Optionally you can give your script the start|restart|stop flags, which is nice
)
Add a line to your rc.M pointing towards your rc.script_to_run like this:
There is no necessity to do it like this though, it's just my own preference.Code:if [ -x /path/rc.script_to_run ] ; then /path/rc.script_to_run (start; if you build in that functionality) fi
Can't tell an OS by it's GUI


Reply With Quote