Linux Service Help

Chuck

Senior member
Oct 9, 1999
704
0
0
Hi,

I've got a RH 7.something linux box that i've just installed apache 2 on, and an updated version of SSH. Both are in new locations compaired to the old versions.

Can anyone point me in the direction of a guide which explains how you can get these to run at start up? Do you simply make a new /etc/init.d/ file for them? I was kind of hopeing there was a utility that made them for you or something? If not thats fine, but I didn't want to do that if there was a 'better' way of doing it.

Thanks.
 

Abzstrak

Platinum Member
Mar 11, 2000
2,450
0
0
probably the easiest way from you in redhat is to run setup at the command line... if memory serves its in /sbin . It has a list of all startup daemons and let you check or uncheck them.
 

Chuck

Senior member
Oct 9, 1999
704
0
0
Yes but the new version of apache is not listed. How do I add one to that list?
 

Buddha Bart

Diamond Member
Oct 11, 1999
3,064
0
0
did you compile from source, or install via rpm?

If you used an rpm, most of the work is done for you, and you can just do something like

"/sbin/chkconfig --level 2345 apache"

If not, you'll probably just have to run whatever executable apache2 starts with by adding a line in /etc/rc.local

bart
 

Chuck

Senior member
Oct 9, 1999
704
0
0
Source. Ok Thanks.. I was just wondering if there was a more automated way of doing it.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Source. Ok Thanks.. I was just wondering if there was a more automated way of doing it.

When you compile from source you forgo a lot of the automations present in distributions.