Find the answer to your Linux question:
Results 1 to 2 of 2
Hey All, I'm a serious newb so go easy. I've been handed a server to manage and rebooted it for the first time today. As expected I had a couple ...
  1. #1
    Just Joined!
    Join Date
    Apr 2010
    Posts
    1

    run script at startup

    Hey All, I'm a serious newb so go easy. I've been handed a server to manage and rebooted it for the first time today. As expected I had a couple problems with services not coming up. This server is running Jasperserver Pro, and it appears the original admin that set it up didn't configure the catalina.sh script to run automatically. So I had to manually run catalina.sh start.

    I'd like for this to start automatically at boot up. From what I've read via GoogleFu I am not clear on the best way to do this. I see some folks recommending Init.d and other rc.local. Because I'm a cautious sort, I don't want to mess with init.d without really knowing what I'm doing.

    I'm looking for step by step instructions to set this up. I'd appreciate every step in detail as I really know just enough to stumble around in linux.

  2. #2
    Linux User ptkobe's Avatar
    Join Date
    Feb 2008
    Location
    Torres Vedras, PT
    Posts
    274
    In some (or most) nix systems, /etc/rc.local is run after the init scripts.

    Not on ubuntu, but the ubuntu install will create a init script to run that file.

    try
    $ ls -l /etc/rc2.d/S??rc.local
    lrwxrwxrwx 1 root root 18 2010-02-07 16:00 /etc/rc2.d/S99rc.local -> ../init.d/rc.local

    So, there's a init script that runs last (S99), that executes rc.local.

    My point being that creating a init.d script that runs last, or use the one that exist, /etc/init.d/rc.local (check if it does exist), and edit rc.local is not that different.

    But if you ask me, I'll edit rc.local.

    I do think what I said is basically true, maybe not for all ubuntu versions, hope it helps.

    Regards
    Luis

Posting Permissions

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