Results 1 to 6 of 6

Thread: /etc/rc.local equivalent ?

  1. #1

    Default /etc/rc.local equivalent ?

    I would like to run some scripts as root at start up just before the boot sequence is over.
    I have read about putting them in /etc/rc.local . Unfortunately that doesn't seem to exist in Leap 42.3.
    Is there/what is the equivalent in Leap 42.3 ?

    Thanks.

  2. #2

    Default Re: /etc/rc.local equivalent ?

    The rc.local equivalent in Suse seems to be /etc/init.d/after-local
    This link is a bit old but it seems to work. Maybe someone can comment on whether something else should be done instead.

  3. #3
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    23,710
    Blog Entries
    1

    Default Re: /etc/rc.local equivalent ?

    Quote Originally Posted by oznelig View Post
    The rc.local equivalent in Suse seems to be /etc/init.d/after-local
    This link is a bit old but it seems to work. Maybe someone can comment on whether something else should be done instead.
    Yes, there is rc-local.service and the after-local.service available for init script compatibility. I recall reading somewhere that these are being deprecated in later systemd versions though. However, there is nothing to stop you creating a custom service unit to achieve the same end.

  4. #4
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    23,710
    Blog Entries
    1

    Default Re: /etc/rc.local equivalent ?


  5. #5

    Default Re: /etc/rc.local equivalent ?

    Quote Originally Posted by deano_ferrari View Post
    Great, thanks.

  6. #6
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,582

    Default Re: /etc/rc.local equivalent ?

    Quote Originally Posted by oznelig View Post
    I would like to run some scripts as root at start up just before the boot sequence is over.
    I tend to run scripts at boot time by using "cron".

    The only issue that I occasionally experience is, the timing …
    But, that can usually be resolved in the script which "cron" kicks off during the boot process …

Tags for this Thread

Posting Permissions

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