Allows you to search a variety of questions and answers
This is true for CentOS/RHEL/FC flavors.
Login as root user and go to /etc/rc.d directory. You will need to edit the rc.local file. There, add your own command line to start the service of your choice.
How can I add a service to run at boot?
This is for RH-based OS only.
You will need to use the chkconfig command. Here, I will use snmpd as the example.
To add snmpd to the rc0-6.d directory and to have it boot at 2,3,4,5 runlevels, issue the following commands:
chkconfig --level 2345 snmpd on
chkconfig --add snmpd
07-31-2009, 11:54 AM
If you are on a Debian/Ubuntu system:
Code:
update-rc.d <service> defaults
Run above as root and replace <service> with the service you want to run at boot time. ex: httpd, snmpd, etc.
To remove
Code:
update-rc.d -f <service> remove
I have been using AYK for about 2 years now and they are always on top of any issues I have. They have gone over and beyond helping me with any problems that come up with the server and they have never said "no" to any of my requests. I would definitely recommend them to anyone looking for a reliable server company.
AYKSolutions is thee best hosting solution I have found in 10 years of searching. I'm very grateful of the services they provide. Such a vast variety to host whatever you desire at a great rate. The support team has always been great, always get a reply within 4 Hours of posting, usually way before 4H. I have a range of 1-10gbit machines and they've always kept up with premium standards. Networks they sell are premium, guaranteed. Thank you, AYK :)
Good Cooperation The datacenter is very co-operating, and provides immediate response.