Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 103575 - sys-process/runit: init script for runsvdir
Summary: sys-process/runit: init script for runsvdir
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-24 05:42 UTC by Frank Benkstein
Modified: 2012-11-05 16:12 UTC (History)
2 users (show)

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


Attachments
/etc/init.d/runsvdir (runsvdir,670 bytes, text/plain)
2005-08-24 05:49 UTC, Frank Benkstein
Details
updated /etc/init.d/runsvdir (runsvdir,546 bytes, text/plain)
2006-02-14 15:26 UTC, Radek Podgorny
Details
runsvdir (runsvdir,615 bytes, text/plain)
2006-04-19 18:12 UTC, SpanKY
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Benkstein 2005-08-24 05:42:36 UTC
Hi.

If you don't run runit as an init replacement you need to
start runsvdir manually. There is currently no init script
provided so I made one from the init script for svscan.

Please put in portage.

Best regards
Frank Benkstein.
Comment 1 Frank Benkstein 2005-08-24 05:49:27 UTC
Created attachment 66738 [details]
/etc/init.d/runsvdir

init.d script
Comment 2 Radek Podgorny 2006-01-15 15:13:24 UTC
Can you, please, add this to portage? Thanks...
Comment 3 SpanKY gentoo-dev 2006-01-19 16:45:37 UTC
problems:

- depend() has way too much crap
- start() too complicated, whats with duplicate pid handling
- stop() needs to call ssd --oknodo ... do you need to hide errors from runsvctrl ?
Comment 4 Radek Podgorny 2006-02-14 15:26:56 UTC
Created attachment 79808 [details]
updated /etc/init.d/runsvdir

This is the cleaner version, someone please make the former file obsolete and consider including this one in portage. Tested and works...
Comment 5 Radek Podgorny 2006-03-14 04:53:31 UTC
One more machine running this fine. Please add to portage...
Comment 6 SpanKY gentoo-dev 2006-03-14 20:25:56 UTC
is the depend() really needed ?
Comment 7 Radek Podgorny 2006-03-15 08:01:00 UTC
Well, that depends on what services you wish to be managed by runit but I think the "after net" is a safe default (in contrary to "intrusive" "need net") and shouldn't mean any harm.
Comment 8 SpanKY gentoo-dev 2006-03-15 16:14:14 UTC
> Well, that depends on what services you wish to be managed by runit but I think
> the "after net" is a safe default (in contrary to "intrusive" "need net") and
> shouldn't mean any harm.

then you actually mean to say "use net" ?
Comment 9 Radek Podgorny 2006-03-16 02:59:26 UTC
Ah, you're right maybe. I've never been a depend() expert... :-(
Comment 10 SpanKY gentoo-dev 2006-03-16 18:51:25 UTC
ok, well only other thing i see is stop() doesnt return status properly if ssd failed but runsvctrl worked ...
Comment 11 Radek Podgorny 2006-03-17 11:16:02 UTC
Unfortunately I don't know much about start-stop-daemon and in fact I never really liked it anyway (that's why I use runit) so please do anything necessary to correct it.
Comment 12 Radek Podgorny 2006-04-19 13:54:12 UTC
Can anyone with start-stop-daemon skills please take a look at this one? Thanks...
Comment 13 SpanKY gentoo-dev 2006-04-19 18:12:34 UTC
Created attachment 84991 [details]
runsvdir
Comment 14 Radek Podgorny 2006-04-20 00:23:18 UTC
Thanks a lot, please be sure to take a look at bug 128918 and provide a different init-script for versions >= 1.4, thanks... (there is no runsvctrl anymore)
Comment 15 SpanKY gentoo-dev 2012-11-05 16:12:57 UTC
someone who actually uses this needs to post an updated init.d script