Ask a Question related to Debian, Design and Development.
-
hashi@pooq.com #1
script to run at boot
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]debian-user-request@lists.debian.org[/email]
with a subject of "unsubscribe". Trouble? Contact [email]listmaster@lists.debian.org[/email]
hashi@pooq.com Guest
-
6.1 script not working on 7.0 server. Script used towork!
I've a problem with some coldfusion 6.1 scripts running on a server with coldfusion 7. It seems that it isn't accepting the hidden type for the tag... -
Creating a boot diskette that does nothing but boot from hard disk
Is it possible to create a boot diskette that does nothing more than boot from a specific hard disk? How would I go about doing so? If I can't... -
ksh script - Preventing multiple runs of a particular script
I am having trouble with a ksh script I am writing. I need to make sure that the script is not already running when it is kicked off in cron. ... -
rc boot script problem
I have a reboot script, /etc/rc2.d/S99dbora.sh which is a link to /etc/init.d/dbora.sh. This script expects a "start" message from rc2 at boot... -
Execute shell script from a perl script
Hi, How can I executed a Unix shell script from a Perl script. The shell script is a dump of a oracle table to a file. The perl script is for... -
Shawn Lamson #2
Re: script to run at boot
On Fri, August 01 at 3:02 PM EDT
[email]hashi@pooq.com[/email] wrote:
1)make a file /etc/init.d/rc.local>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?
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]shawn.lamson@verizon.net[/email]
--
To UNSUBSCRIBE, email to [email]debian-user-request@lists.debian.org[/email]
with a subject of "unsubscribe". Trouble? Contact [email]listmaster@lists.debian.org[/email]
Shawn Lamson Guest
-
David Z Maze #3
Re: script to run at boot
[email]hashi@pooq.com[/email] writes:
Put the file in /etc/init.d (copy /etc/init.d/skeleton if you need> 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?
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]dmaze@debian.org[/email] [url]http://people.debian.org/~dmaze/[/url]
"Theoretical politics is interesting. Politicking should be illegal."
-- Abra Mitchell
--
To UNSUBSCRIBE, email to [email]debian-user-request@lists.debian.org[/email]
with a subject of "unsubscribe". Trouble? Contact [email]listmaster@lists.debian.org[/email]
David Z Maze Guest
-
Johann Koenig #4
Re: script to run at boot
On Fri, 01 Aug 2003 21:30:12 +0200
Shawn Lamson <shawn.lamson@verizon.net> wrote:
Nifty trick:> 3)chown root /etc/init.d/rc.local #do these only if perms are not
> correct
> 4)chgrp root /etc/init.d/rc.local
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: [url]http://mental-graffiti.com/pgp/johannkoenig.pgp[/url]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE/K+AOFk4duwOzQpURAhQcAJ96w0ymKBH2Kt9D1K9uk8tsIeoF1Q CeN4u7
/S2duLOcg2GaoE81x433j04=
=oXtE
-----END PGP SIGNATURE-----
Johann Koenig Guest
-
Danie Roux #5
Re: script to run at boot
On Fri, Aug 01, 2003 at 03:02:19PM -0400, [email]hashi@pooq.com[/email] wrote:
Yes, /etc/rcS.d> 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?
Read the README there.
--
Danie Roux *shuffle* Adore Unix
--
To UNSUBSCRIBE, email to [email]debian-user-request@lists.debian.org[/email]
with a subject of "unsubscribe". Trouble? Contact [email]listmaster@lists.debian.org[/email]
Danie Roux Guest



Reply With Quote

