Ubuntu has a file at /etc/rc.local I quote from the script: # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. In Ubuntu you can do: sudo /etc/init.d/rc.local start sort of stuff with it. What's the equivalent in 10.2? Thanks. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 9/21/07, primm
Ubuntu has a file at /etc/rc.local
I quote from the script:
# This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error.
In Ubuntu you can do:
sudo /etc/init.d/rc.local start
boot.local
sort of stuff with it.
What's the equivalent in 10.2?
Thanks. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Druid wrote:
On 9/21/07, primm
wrote: Ubuntu has a file at /etc/rc.local
I quote from the script:
# This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error.
In Ubuntu you can do:
sudo /etc/init.d/rc.local start
boot.local
Boot.local runs fairly early in the sequence. After.local runs at the end. -- Use OpenOffice.org http://www.openoffice.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Friday 21 September 2007 23:20, Druid wrote:
Boot.local runs fairly early in the sequence. After.local runs at the end.
which you will have to create, since its not there by default
Hi everyone Thanks for all the responses. Could I just repeat the OP # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. So the new question is what do I create and where do I create it? Cheers -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
primm wrote:
On Friday 21 September 2007 23:20, Druid wrote:
Boot.local runs fairly early in the sequence. After.local runs at the end.
which you will have to create, since its not there by default
Hi everyone
Thanks for all the responses. Could I just repeat the OP
# This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error.
So the new question is what do I create and where do I create it?
Cheers
As I mentioned in the other note, if you want stuff to run at the end of the init level change, create /etc/rc.d/boot.local. -- Use OpenOffice.org http://www.openoffice.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Saturday 2007-09-22 at 07:14 -0400, James Knott wrote:
As I mentioned in the other note, if you want stuff to run at the end of the init level change, create /etc/rc.d/boot.local.
Er... I believe it runs only afther boot, not on every runlevel change:
#! /bin/sh
#
# Copyright (c) 2002 SuSE Linux AG Nuernberg, Germany. All rights reserved.
#
# Author: Werner Fink
On Saturday 22 September 2007 13:45, Carlos E. R. wrote:
The Saturday 2007-09-22 at 07:14 -0400, James Knott wrote:
As I mentioned in the other note, if you want stuff to run at the end of the init level change, create /etc/rc.d/boot.local.
Er... I believe it runs only afther boot, not on every runlevel change:
However, /etc/rc.d/after.local is executed after each runlevel change. You can see that reading the main script, /etc/rc.d/rc:
Hi everyone. On my setup rc.d is a link to init.d. There is no after.local. Basically my graphics tablet doesn't hotplug so this is the workaround. I move the tablet around from box to box so I need to enable and disable it. This is what Ubuntu has in rc.local and this is what I want to implement on 10.2: ------- #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. XORG_CONF=/etc/X11/xorg.conf if [ -e /dev/tablet-event ]; then sed -ie 's/^\(\s*\)\#\(\s*InputDevice\s\s*\"WizardPen\ Tablet\"\s\s*\"AlwaysCore\"\)\s*$/\1\2/' "$XORG_CONF" echo "Udev created /dev/tablet-event = Tablet present! - Tablet-driver enabled" else sed -ie 's/\(^\s*InputDevice\s\s*\"WizardPen\ Tablet\"\s\s*\"AlwaysCore\"\)\s*$/\#&/' "$XORG_CONF" echo "Udev did NOT create /dev/tablet-event = tablet NOT present! - Tablet-driver disabled" fi exit 0 -------- If I create /etc/init.d/after.local and paste this in is that what you are saying is equivalent? Poking around in /etc/init.d scares the life out of me so I want to be really sure. Cheers, Steve. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Saturday 2007-09-22 at 14:10 +0200, Primm wrote:
Hi everyone.
On my setup rc.d is a link to init.d. There is no after.local.
Of course not: /you/ create it.
If I create /etc/init.d/after.local and paste this in is that what you are saying is equivalent?
Yes. But now that you explained what you want, I would instead create /etc/init.d/tablet based on /etc/init.d/skeleton, and a /usr/sbin/rctablet symlink to it. Then insert your new service with Yast or chkconfig. Define it to start after xdm, I think. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFG9Qy0tTMYHG2NR9URAk2OAJ9yU+PFw57uJollkZTFRfC/ChsyRwCdHyY4 ZQx1jUTIaIoKZsD+5hYFtng= =ipHK -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
primm wrote:
Ubuntu has a file at /etc/rc.local
I quote from the script:
# This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error.
In Ubuntu you can do:
sudo /etc/init.d/rc.local start
sort of stuff with it.
What's the equivalent in 10.2?
Thanks.
after.local -- Use OpenOffice.org http://www.openoffice.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (5)
-
Carlos E. R.
-
Druid
-
James Knott
-
Primm
-
primm