Re: script to run at boot

2003-08-03 Thread Danie Roux
On Fri, Aug 01, 2003 at 03:02:19PM -0400, [EMAIL PROTECTED] wrote:
 Other Linuxes have a p;ace to put a file that is to be run after the
 usual bootup, where I can put extra commands that are also to be run
 at every boot.
 
 Is there such a place in Debian?

Yes, /etc/rcS.d

Read the README there.

-- 
Danie Roux *shuffle* Adore Unix



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: script to run at boot

2003-08-02 Thread Johann Koenig
On Fri, 01 Aug 2003 21:30:12 +0200
Shawn Lamson [EMAIL PROTECTED] wrote:

 3)chown root /etc/init.d/rc.local  #do these only if perms are not
 correct
 4)chgrp root /etc/init.d/rc.local

Nifty trick:
chown root:root file
-- 
-johann koenig
now playing: Los Cabriolas - Leaving Town
Today is Prickle-Prickle, the 68th day of Confusion in the YOLD 3169
My public pgp key: http://mental-graffiti.com/pgp/johannkoenig.pgp


pgp0.pgp
Description: PGP signature


script to run at boot

2003-08-01 Thread hashi
Other Linuxes have a p;ace to put a file that is to be run after the
usual bootup, where I can put extra commands that are also to be run
at every boot.

Is there such a place in Debian?

-- hendrik


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: script to run at boot

2003-08-01 Thread Shawn Lamson
On Fri, August 01 at  3:02 PM EDT
[EMAIL PROTECTED] wrote:

Other Linuxes have a p;ace to put a file that is to be run after the
usual bootup, where I can put extra commands that are also to be run
at every boot.

Is there such a place in Debian?

1)make a file /etc/init.d/rc.local
there may be a different suggested name for the file at this point,
but rc.local is used by other linuxes last time I checked
2)give it the commands you want
3)chown root /etc/init.d/rc.local  #do these only if perms are not
correct
4)chgrp root /etc/init.d/rc.local
4)chmod 755 /etc/init.d/rc.local
5)update-rc.d rc.local start 99 2 . 
yes a period at the end

I think this will put it in /etc/rc2.d as S99rc.local but you may need
to read the update-rc.d man page as I am not an expert on it.

HTH

Shawn Lamson
[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: script to run at boot

2003-08-01 Thread David Z Maze
[EMAIL PROTECTED] writes:

 Other Linuxes have a p;ace to put a file that is to be run after the
 usual bootup, where I can put extra commands that are also to be run
 at every boot.

 Is there such a place in Debian?

Put the file in /etc/init.d (copy /etc/init.d/skeleton if you need
to; it should have a somewhat similar structure to that file).  Then
make links from there to /etc/rcS.d or /etc/rc[2345].d, naming the
file appropriately for where you want your script to run.  See the
documentation in /usr/share/doc/sysvinit for more details.

-- 
David Maze [EMAIL PROTECTED]  http://people.debian.org/~dmaze/
Theoretical politics is interesting.  Politicking should be illegal.
-- Abra Mitchell


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]