From: Duncan <1i5t5.duncan@cox.net>
To: gentoo-amd64@lists.gentoo.org
Subject: [gentoo-amd64] Re: how to best run a script at boot
Date: Sun, 15 Jul 2007 11:31:10 +0000 (UTC) [thread overview]
Message-ID: <pan.2007.07.15.11.31.09@cox.net> (raw)
In-Reply-To: 20070715103658.3A50E9521D@mail.ilievnet.com
Daniel Iliev <danny@ilievnet.com> posted
20070715103658.3A50E9521D@mail.ilievnet.com, excerpted below, on Sun, 15
Jul 2007 13:36:57 +0300:
> AFAIK the places intended for that purpose are "/etc/conf.d/local.start"
> and "/etc/conf.d/local.stop" for starting and stopping custom programs
> at boot and shut down time respectively. So, you may want to put that
> line in "/etc/conf.d/local.start"
I'll third the idea. I've been using local.start to run a couple scripts
of my own for some time. It "just works" as they say. Just add the
"local" service to your default or whatever runlevel, and it'll start and
stop anything you add to the conf.d local.st(art|op), without having to
setup a whole fancy service.
The only caveat is that local is the last thing started and the first
thing stopped, so if you need something started earlier or stopped later,
you have to change things a bit. I'd still recommend starting with the
local service, however, and going from there, since it's tested, and
future changes will be done with it in mind, so it's less likely to break
with future updates than something you create entirely on your own.
--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman
--
gentoo-amd64@gentoo.org mailing list
next prev parent reply other threads:[~2007-07-15 11:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-15 9:15 [gentoo-amd64] how to best run a script at boot Thierry de Coulon
2007-07-15 9:40 ` Michael Ballard
2007-07-15 10:36 ` Daniel Iliev
2007-07-15 11:31 ` Duncan [this message]
2007-07-15 12:12 ` [gentoo-amd64] " Thierry de Coulon
2007-07-15 17:24 ` Nuitari
2007-07-15 16:24 ` [gentoo-amd64] " Dustin J. Mitchell
2007-07-15 21:53 ` Peter Humphrey
2007-07-16 8:33 ` Thierry de Coulon
2007-07-16 17:36 ` Peter Humphrey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=pan.2007.07.15.11.31.09@cox.net \
--to=1i5t5.duncan@cox.net \
--cc=gentoo-amd64@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox