Results 1 to 5 of 5
-
08-21-2011, 04:47 AM #1Newbie
- Join Date
- Aug 2011
- Posts
- 22
Start "process" on boot? (CentOS)
Hello, I have a VPS with CentOS 5 and was wondering how I would start a process on boot-up.
Usually the way I start them is by typing "service (service) start" in SSH on every reboot but I need to make it so that it calls that on boot...
If this is possible please help me out.
Thanks.
-
08-21-2011, 04:54 AM #2Total Nerd
- Join Date
- Feb 2007
- Location
- Florida
- Posts
- 1,932
Add the command to rc.local file.
-Joe @ Secure Dragon LLC.
+ OpenVZ Powered by Wyvern | KVM | cPanel Hosting | Backup VPSs | LowEndBoxes | DDOS Protection
+ Florida | Colorado | Illinois | California | Oregon | Georgia | New Jersey | Arizona | Texas
-
08-21-2011, 04:58 AM #3Divided by Zero
- Join Date
- Jun 2009
- Posts
- 1,219
If it is a service (daemon) then you can start it automatically.
Just connect via ssh, type
ntsysv
and check the service for getting started on boot.
-
08-21-2011, 05:06 AM #4Total Nerd
- Join Date
- Feb 2007
- Location
- Florida
- Posts
- 1,932
Oh, I didn't noticed it was a service. Use chkconfig to start it on boot.
Code:chkconfig SERVICE on
-Joe @ Secure Dragon LLC.
+ OpenVZ Powered by Wyvern | KVM | cPanel Hosting | Backup VPSs | LowEndBoxes | DDOS Protection
+ Florida | Colorado | Illinois | California | Oregon | Georgia | New Jersey | Arizona | Texas
-
08-21-2011, 05:09 AM #5Newbie
- Join Date
- Aug 2011
- Posts
- 22
Thanks, chkconfig worked.
Similar Threads
-
Thumbdrive linux problem, "Boot error"
By Sykoi in forum Computers and PeripheralsReplies: 2Last Post: 06-14-2007, 03:02 PM -
"Starting clock.." - Boot problem
By ironfist in forum Dedicated ServerReplies: 0Last Post: 11-14-2005, 01:06 AM -
What is the main difference between "Red Hat Enterprice" and "CentOS"?
By bestprobe in forum Hosting Software and Control PanelsReplies: 4Last Post: 07-14-2005, 02:15 AM -
Urgent HELP! linux cant boot, "warning, unable to open initial console..."
By qazakax in forum Hosting Security and TechnologyReplies: 2Last Post: 04-19-2004, 08:00 AM -
Cannot boot up server "GRWP" error
By WCHost in forum Hosting Security and TechnologyReplies: 6Last Post: 11-06-2003, 06:05 PM