Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 13889 - Update init scripts / process(es) to include at least some LSB functionality
Summary: Update init scripts / process(es) to include at least some LSB functionality
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-13 22:23 UTC by Guy
Modified: 2003-04-06 10:58 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
init script for mynetwatchman perl agent (mnwclient.init,1.44 KB, text/plain)
2003-01-13 22:25 UTC, Guy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Guy 2003-01-13 22:23:42 UTC
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.
Comment 1 Guy 2003-01-13 22:25:11 UTC
Created attachment 7284 [details]
init script for mynetwatchman perl agent
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-13 23:54:32 UTC
Just use /bin/pidof that comes with baselayout ?
Comment 3 Guy 2003-01-14 04:19:33 UTC
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. 
Comment 4 SpanKY gentoo-dev 2003-01-14 04:23:51 UTC
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 
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2003-04-06 10:58:53 UTC
You could do:

------------------------------------
pidofproc() {
   [ -z $1 ] && return 0

   /bin/pidof $1
}
------------------------------------

Anyhow, like Spanky said, you should preferably create your own script.