Find the answer to your Linux question:
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 ...
  1. #1
    Linux 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?

  2. #2
    Linux Engineer Freston's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    1,047
    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:

    Code:
    if [ -x /path/rc.script_to_run ] ; then
    /path/rc.script_to_run (start; if you build in that functionality)
    fi
    There is no necessity to do it like this though, it's just my own preference.
    Can't tell an OS by it's GUI

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...