I've encountered some packages which rely on functionality described in the Linux Standards Base. The function I'm particularly interested in is 'pidofproc' as described here: http://www.linuxbase.org/spec/gLSB/gLSB/iniscrptfunc.html. I'm not a bashl script maven so I don't know where to start with making the requisite changes to work-around my perceived lack of this functionality in gentoo. I do see where I need to make some changes to directories (/etc/rc.d/init.d => /etc/init.d for example) but working around 'pidofproc' is currently beyond my knowledge level.
Created attachment 7284 [details] init script for mynetwatchman perl agent
Just use /bin/pidof that comes with baselayout ?
I'll be happy to try that. :-) Your opinion: is it better to make a link to pidof or to patch the script? I'm thinking of trying to make an ebuild for this package if I can get it to work. I guess I've got to start learning how to make ebuilds (however bad they end up being) at some point.
with init scripts we dont install ones that come with a package into /etc/init.d/ Gentoo has its own style of doing init and as such, a custom script should be made
You could do: ------------------------------------ pidofproc() { [ -z $1 ] && return 0 /bin/pidof $1 } ------------------------------------ Anyhow, like Spanky said, you should preferably create your own script.