From: "paul kölle" <paul@subsignal.org>
To: gentoo-dev@lists.gentoo.org
Subject: [gentoo-dev] writing net.xx style init script
Date: Sun, 20 Aug 2006 14:01:27 +0200 [thread overview]
Message-ID: <44E84F17.7060105@subsignal.org> (raw)
Hi all,
I need to write an init-script for multiple instances of the same
service with different configurations (need to start/stop them
individually) similar to what the net.xx scripts do.
I thought I could get the instance name from $0 and use it as a key to
look up the configuration in /etc/conf.d/servicename but $0 is always
/sbin/runscript.sh. The net.xx scripts know the name as ${IFACE} in
start() without doing something obvious... How do I get the name of the
called script in /etc/init.d? Better ideas?
thanks
Paul
--
gentoo-dev@gentoo.org mailing list
next reply other threads:[~2006-08-20 12:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-20 12:01 paul kölle [this message]
2006-08-20 11:19 ` [gentoo-dev] writing net.xx style init script Marius Mauch
2006-08-20 12:11 ` Mike Frysinger
2006-08-20 15:22 ` paul kölle
2006-08-20 21:00 ` Mike Frysinger
2006-08-20 12:39 ` Roy Marples
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=44E84F17.7060105@subsignal.org \
--to=paul@subsignal.org \
--cc=gentoo-dev@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