Results 1 to 5 of 5
  1. #1

    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.

  2. #2
    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

  3. #3
    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.

  4. #4
    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

  5. #5
    Thanks, chkconfig worked.

Similar Threads

  1. Thumbdrive linux problem, "Boot error"
    By Sykoi in forum Computers and Peripherals
    Replies: 2
    Last Post: 06-14-2007, 03:02 PM
  2. "Starting clock.." - Boot problem
    By ironfist in forum Dedicated Server
    Replies: 0
    Last Post: 11-14-2005, 01:06 AM
  3. What is the main difference between "Red Hat Enterprice" and "CentOS"?
    By bestprobe in forum Hosting Software and Control Panels
    Replies: 4
    Last Post: 07-14-2005, 02:15 AM
  4. Urgent HELP! linux cant boot, "warning, unable to open initial console..."
    By qazakax in forum Hosting Security and Technology
    Replies: 2
    Last Post: 04-19-2004, 08:00 AM
  5. Cannot boot up server "GRWP" error
    By WCHost in forum Hosting Security and Technology
    Replies: 6
    Last Post: 11-06-2003, 06:05 PM

Posting Permissions

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