Mandriva Linux Archives: cooker@mandrivalinux.org
Mandriva Linux: cooker@mandrivalinux.org
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
- From: roudoudou
- Subject: Re: [Cooker] please update initscript howto ( http://wiki.mandriva.com/en/Development/Howto/Initscripts )
- Date: 27 Apr 2008 08:10:07 -0000
On Sat, Apr 26, 2008 at 9:48 PM, Guillaume Rousse <Guillaume.Rousse@inria.fr> wrote: > roudoudou a écrit : > > > Hi, > > When trying to make some rpm package, i've found valuable information > > in the initscript howto on wiki.mandriva.com ( > > http://wiki.mandriva.com/en/Development/Howto/Initscripts ) . But it > > seems that there's some minor issue with this how to: > > * it seems that the status() primitive suggested > > (http://wiki.mandriva.com/en/Development/Howto/Initscripts#Second_part_-_Primitives) > > leads to infinite recursion loop. Indeed, a status() function is > > defined in the initscript which try to call the > > /etc/rc.d/init.d/functions::status() function which it already > > redefined > there is no namespace in shell: you can not define your own status > function without replacing the one from /etc/rc.d/init.d/functions > > ok, thanks ! Anssi has already modified the initscript sample given in this how to ( http://wiki.mandriva.com/en/index.php?title=Development/Howto/Initscripts&diff=11180&oldid=11163 ) I removed the useless status() function definied in this sample then ( http://wiki.mandriva.com/en/index.php?title=Development/Howto/Initscripts&diff=11181&oldid=11180 ) > > * looks like "echo" call should be replaced by "gprintf" ? > echo is automatically substituted by gprintf during rpm building. > Ok, thanks for the hint !
- Replies:
- References:
- Prev by Date: [Cooker] Second life client
- Next by Date: Re: [Cooker] Re: Mandriva cant mount FreeBSD partitions
- Previous by thread: Re: [Cooker] please update initscript howto ( http://wiki.mandriva.com/en/Development/Howto/Initscripts )
- Next by thread: Re: [Cooker] please update initscript howto ( http://wiki.mandriva.com/en/Development/Howto/Initscripts )
- Index(es):
