public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] writing net.xx style init script
@ 2006-08-20 12:01 paul kölle
  2006-08-20 11:19 ` Marius Mauch
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: paul kölle @ 2006-08-20 12:01 UTC (permalink / raw
  To: gentoo-dev

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



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-08-20 21:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-20 12:01 [gentoo-dev] writing net.xx style init script paul kölle
2006-08-20 11:19 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox