Help - Search - Members - Calendar
Full Version: starting a service on boot?!
Linuxhelp > Support > Technical Support
ProgrammersUnlimited
I've done a ton of searching on google, but have only come up with nothing. I have vsftpd, httpd and mysql that need to start with the machine, how do i set that up? I find a ton of info on how the inittab works, but not how to add my own stuff. What do I do? thanks.
michaelk
It depends on the linux distribution you are running.
Were the daemons installed with the OS, package management like RPM or by source?
If installed with the OS or by a package for the distro then it is preconfigured and you can use the GUI admin tool to configure services. If installed by source then you will need to manually configure the daemons to start at boot.

For example Fedora, Redhat, Mandrake and similar:
http://www.redhat.com/docs/manuals/linux/R...tdown-sysv.html

Searching for info on init.d, runlevels. will pop up lots of info.
cagey cretin
QUOTE (ProgrammersUnlimited @ Jan 11 2006, 08:57 PM)
I've done a ton of searching on google, but have only come up with nothing. I have vsftpd, httpd and mysql that need to start with the machine, how do i set that up? I find a ton of info on how the inittab works, but not how to add my own stuff. What do I do? thanks.

Hi, I can't speak for all distros, but for a standard vanilla install for Redhat, Fedora Core, & WHEL, you would probably get results with (enter these as root from command line):

CODE
chkconfig vsftpd on
chkconfig httpd on
chkconfig mysqld on


Hope that helps.
Hemant
For gentoo:
CODE
rc-update add httpd default


That snippet will add httpd service to the default boot runlevel.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.