Re: [gentoo-dev] writing net.xx style init script

2006-08-20 Thread Mike Frysinger
On Sunday 20 August 2006 11:22, paul kölle wrote: > Mike Frysinger wrote: > > On Sunday 20 August 2006 08:01, paul kölle wrote: > >> How do I get the name of the called script in /etc/init.d? Better ideas? > > > > use $SVCNAME > > > > see the sshd init.d script for some examples > > thanks mike, yo

Re: [gentoo-dev] writing net.xx style init script

2006-08-20 Thread paul kölle
Mike Frysinger wrote: > On Sunday 20 August 2006 08:01, paul kölle wrote: >> How do I get the name of the called script in /etc/init.d? Better ideas? > > use $SVCNAME > > see the sshd init.d script for some examples thanks mike, you got me started ;) actually there is plenty of choice here: ge

Re: [gentoo-dev] writing net.xx style init script

2006-08-20 Thread Roy Marples
On Sunday 20 August 2006 13:01, paul kölle wrote: > 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. Sounds like you want to look at the openvpn or vsftpd init s

Re: [gentoo-dev] writing net.xx style init script

2006-08-20 Thread Marius Mauch
paul kölle schrieb: 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 co

Re: [gentoo-dev] writing net.xx style init script

2006-08-20 Thread Mike Frysinger
On Sunday 20 August 2006 08:01, paul kölle wrote: > How do I get the name of the called script in /etc/init.d? Better ideas? use $SVCNAME see the sshd init.d script for some examples -mike pgp5jeIZEuyzr.pgp Description: PGP signature

[gentoo-dev] writing net.xx style init script

2006-08-20 Thread paul kölle
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/co