Re: [CentOS] init script question

2008-12-13 Thread Ralph Angenendt
Phil Schaffner wrote: > Davide Cittaro wrote: > > Ok, another one: the process I would like to start is not a daemon > > itself. If I start it with "daemon" function it remains in foreground. > > Ok, I can play with '&' but is there a init function to start in > > background a process? > > Y

Re: [CentOS] init script question

2008-12-12 Thread Filipe Brandenburger
Hi, On Fri, Dec 12, 2008 at 09:13, Davide Cittaro wrote: > Ok, another one: the process I would like to start is not a daemon > itself. If I start it with "daemon" function it remains in foreground. > Ok, I can play with '&' but is there a init function to start in > background a process? Use "n

Re: [CentOS] init script question

2008-12-12 Thread Phil Schaffner
Davide Cittaro wrote: > Ok, another one: the process I would like to start is not a daemon > itself. If I start it with "daemon" function it remains in foreground. > Ok, I can play with '&' but is there a init function to start in > background a process? You just hijacked your own thread. B

Re: [CentOS] init script question

2008-12-12 Thread Phil Schaffner
Jacques B. wrote: ... > > Do you mean like $0? That gives you the current script name. Or better yet basename $0 if you want the name of the script and not the full path. Phil ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman

Re: [CentOS] init script question

2008-12-12 Thread Davide Cittaro
Ok, another one: the process I would like to start is not a daemon itself. If I start it with "daemon" function it remains in foreground. Ok, I can play with '&' but is there a init function to start in background a process? d /* Davide Cittaro Cogentech - Consortium for Genomic Technologie

Re: [CentOS] init script question

2008-12-12 Thread Davide Cittaro
On Dec 12, 2008, at 2:40 PM, Jacques B. wrote: > Do you mean like $0? That gives you the current script name. :-) Fine, thanks, I thought that launching with /sbin/service somehow breaks positional variables... d /* Davide Cittaro Cogentech - Consortium for Genomic Technologies via adamell

Re: [CentOS] init script question

2008-12-12 Thread Jacques B.
On Fri, Dec 12, 2008 at 8:37 AM, Davide Cittaro wrote: > Hi all, is there a function (or variable) I can use in a custom init script > that identifies the init script name? i.e. I'm porting some init scripts > from gentoo, where the $SVCNAME variable identifies the init script name > within the sc

[CentOS] init script question

2008-12-12 Thread Davide Cittaro
Hi all, is there a function (or variable) I can use in a custom init script that identifies the init script name? i.e. I'm porting some init scripts from gentoo, where the $SVCNAME variable identifies the init script name within the script itself... d /* Davide Cittaro Cogentech - Consor