Results 1 to 3 of 3

Thread: Run a service on boot in linux

  1. #1

    Question Run a service on boot in linux

    How can I run a service or program on boot in my linux (RH 7.2)?

    Thanks.
    What is essential is invisible
    to the eye ...
    ]ØÐÖ§|-|Å

  2. #2
    Senior Member
    Join Date
    Jan 2002
    Posts
    452
    There should be a file named inetd.conf, if I remember correctly this is where you set up background/startup proggies.
    Elen alcarin ar gwath halla ná engwar.

  3. #3
    PHP/PostgreSQL guy
    Join Date
    Dec 2001
    Posts
    1,164
    For redhat, you need to make sure the /etc/init.d program is created. All of the files in this directory are start/stop/start_msg/stop_msg/status programs and all have the same format. Make sure your program runs from there (make something and then run 'program start' and 'program stop'. Then go to /etc/rc2.d and rc3.d and make the symbolic links. The S* programs are started in order and the K* programs run the 'stop' argument upon shutdown, reboot, or changing init run levels. the rc2/rc3.d means that it would run/kill in run levels 2 and 3, with 3 being multiuser and all services are running. This should help you...
    We the willing, led by the unknowing, have been doing the impossible for the ungrateful. We have done so much with so little for so long that we are now qualified to do just about anything with almost nothing.

Posting Permissions

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