Find the answer to your Linux question:
Results 1 to 4 of 4
there is no /etc/rc.d/rc.local file, while redhat linux has this file /etc/rc.d/rc.local which will auto-run the scripts. So how does SuSE 10.2 auto-run a script when system is booting up? ...
  1. #1
    Just Joined!
    Join Date
    Jan 2007
    Posts
    26

    where can I leave my scripts that they can run when system boots up

    there is no /etc/rc.d/rc.local file, while redhat linux has this file /etc/rc.d/rc.local which will auto-run the scripts.

    So how does SuSE 10.2 auto-run a script when system is booting up?

    Thanks.

  2. #2
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    Put them in /etc/init.d/boot.local.

  3. #3
    Just Joined!
    Join Date
    Jan 2007
    Posts
    26
    It works, thanks.

    I tried to put the script in /etc/init.d/rc3.d, which is for level 3, multi-users mode, named S99xxx, it is supposed to run, but it didn't, what could be wrong?

  4. #4
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    You can't just put scripts in the rcX.d directories and expect them to run. The rcX.d directories should just contain symlinks whilst the script itself has to be in /etc/init.d. The script also has to have options that enable the service to be managed e.g. start, stop, restart etc.

Posting Permissions

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