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

Reply via email to