[opensuse] rc.local in openSUSE
Is there a simple way to run commands during the boot process, but after init scripts are run in openSUSE, sort of like rc.local file in other distributions? I was told that boot.local is the same in openSUSE, but these commands run before the init scripts. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 12/13/2010 2:51 PM, Andrew Joakimsen wrote:
Is there a simple way to run commands during the boot process, but after init scripts are run in openSUSE, sort of like rc.local file in other distributions? I was told that boot.local is the same in openSUSE, but these commands run before the init scripts.
Andrew, You're looking for /etc/rc.d/boot.local -Matt -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, Dec 13, 2010 at 14:53, Matt Hayes
On 12/13/2010 2:51 PM, Andrew Joakimsen wrote:
Is there a simple way to run commands during the boot process, but after init scripts are run in openSUSE, sort of like rc.local file in other distributions? I was told that boot.local is the same in openSUSE, but these commands run before the init scripts.
Andrew,
You're looking for /etc/rc.d/boot.local
And how would I ensure boot.local runs after the init scripts, not before as I am currently seeing in openSUSE 11.3? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Andrew Joakimsen
On Mon, Dec 13, 2010 at 14:53, Matt Hayes
wrote: On 12/13/2010 2:51 PM, Andrew Joakimsen wrote:
Is there a simple way to run commands during the boot process, but after init scripts are run in openSUSE, sort of like rc.local file in other distributions? I was told that boot.local is the same in openSUSE, but these commands run before the init scripts.
You're looking for /etc/rc.d/boot.local
And how would I ensure boot.local runs after the init scripts, not before as I am currently seeing in openSUSE 11.3?
use after.local google works -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Andrew Joakimsen wrote:
You're looking for /etc/rc.d/boot.local
And how would I ensure boot.local runs after the init scripts, not before as I am currently seeing in openSUSE 11.3?
Create the file /etc/init.d/after.local and put your stuff in there. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, Dec 13, 2010 at 15:57, James Knott
Andrew Joakimsen wrote:
You're looking for /etc/rc.d/boot.local
And how would I ensure boot.local runs after the init scripts, not before as I am currently seeing in openSUSE 11.3?
In the same format as rc.local and boot.local or does it need to be in init script style? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Andrew Joakimsen
In the same format as rc.local and boot.local or does it need to be in init script style?
20:30 wahoo:~ > cat /etc/init.d/after.local #/usr/local/bin/noip2.start start if ! [ pidof noip2 ] ; then /usr/local/bin/noip2.start start ; fi -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 12/13/2010 8:30 PM, Patrick Shanahan wrote:
* Andrew Joakimsen
[12-13-10 16:42]: In the same format as rc.local and boot.local or does it need to be in init script style?
20:30 wahoo:~> cat /etc/init.d/after.local #/usr/local/bin/noip2.start start
if ! [ pidof noip2 ] ; then /usr/local/bin/noip2.start start ; fi
pidof noip2 || /usr/local/bin/noip2.start start -- bkw -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Brian K. White
On 12/13/2010 8:30 PM, Patrick Shanahan wrote:
20:30 wahoo:~> cat /etc/init.d/after.local #/usr/local/bin/noip2.start start
if ! [ pidof noip2 ] ; then /usr/local/bin/noip2.start start ; fi
pidof noip2 || /usr/local/bin/noip2.start start
Tks. Shorter *is* better (!tm), but unless one realizes that "||" means "OR" in this case. And I continue to learn :^) When/if I reach 80 I should know about everything! -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 12/13/2010 8:43 PM, Patrick Shanahan wrote:
* Brian K. White
[12-13-10 20:35]: On 12/13/2010 8:30 PM, Patrick Shanahan wrote:
20:30 wahoo:~> cat /etc/init.d/after.local #/usr/local/bin/noip2.start start
if ! [ pidof noip2 ] ; then /usr/local/bin/noip2.start start ; fi
pidof noip2 || /usr/local/bin/noip2.start start
Tks. Shorter *is* better (!tm), but unless one realizes that "||" means "OR" in this case.
And I continue to learn :^) When/if I reach 80 I should know about everything!
Pre-apologizing for the complete nitpick, but I think the clearer word for this is "else", just like the fuller syntax it is shorthand for. Inside of a [ ] or [[ ]] test it is more like a "logical or" like any other programming language. English and most other natural languages unfortunately have a lot of ambiguity that a programming language cannot tolerate, and so "or" actually does, or can, work to describe both meanings of ||, so it's only for the sake of disambiguation I point this out, not because it's actually wrong, exactly. -- bkw -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 El 13/12/10 16:53, Matt Hayes escribió:
On 12/13/2010 2:51 PM, Andrew Joakimsen wrote:
Is there a simple way to run commands during the boot process, but after init scripts are run in openSUSE, sort of like rc.local file in other distributions? I was told that boot.local is the same in openSUSE, but these commands run before the init scripts.
Andrew,
You're looking for /etc/rc.d/boot.local
Nope, boot.local is not what rc.local does. You have to create an init script, with the provided template, that runs after $ALL services instead. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAk0Ge9sACgkQhbiInYWJi9PKqwCaA8zs6ptrH0raYBOVW5apz6ij TE0AnjVhwW55dSenxVPeotfD+BsJMFyV =SEMy -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, Dec 13, 2010 at 05:02:35PM -0300, Cristian Rodríguez wrote:
El 13/12/10 16:53, Matt Hayes escribió:
On 12/13/2010 2:51 PM, Andrew Joakimsen wrote:
Is there a simple way to run commands during the boot process, but after init scripts are run in openSUSE, sort of like rc.local file in other distributions? I was told that boot.local is the same in openSUSE, but these commands run before the init scripts.
Andrew,
You're looking for /etc/rc.d/boot.local
Nope, boot.local is not what rc.local does.
You have to create an init script, with the provided template, that runs after $ALL services instead.
Or you create /etc/init.d/before.local for executing it before all runlevel scripts and /etc/init.d/after.local for executing it after all runlevel scripts. Don't know if this works with systemd. Werner -- "Having a smoking section in a restaurant is like having a peeing section in a swimming pool." -- Edward Burr -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Matt Hayes
On 12/13/2010 2:51 PM, Andrew Joakimsen wrote:
Is there a simple way to run commands during the boot process, but after init scripts are run in openSUSE, sort of like rc.local file in other distributions? I was told that boot.local is the same in openSUSE, but these commands run before the init scripts.
You're looking for /etc/rc.d/boot.local
Note that the file may not exist but will function properly if you make
one containing a command, ie:
15:01 wahoo:~ > cat /etc/init.d/boot.local
#! /bin/sh
#
# Copyright (c) 2002 SuSE Linux AG Nuernberg, Germany. All rights
reserved.
#
# Author: Werner Fink
Andrew Joakimsen wrote:
Is there a simple way to run commands during the boot process, but after init scripts are run in openSUSE, sort of like rc.local file in other distributions? I was told that boot.local is the same in openSUSE, but these commands run before the init scripts.
Create the file after.local in /etc/init.d. You can run your scripts from it. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (7)
-
Andrew Joakimsen
-
Brian K. White
-
Cristian Rodríguez
-
Dr. Werner Fink
-
James Knott
-
Matt Hayes
-
Patrick Shanahan