Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 521918

Summary: sys-process/runit-2.1.1 - files/3 calls sv arguments in wrong order
Product: Gentoo Linux Reporter: Enne Eziarc <gentoo+bugs>
Component: [OLD] Core systemAssignee: William Hubbs <williamh>
Status: RESOLVED FIXED    
Severity: normal CC: base-system, rene.rheaume
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Enne Eziarc 2014-09-01 23:29:05 UTC
The "3" script in $FILESDIR has the following lines:

    echo 'Waiting for getties to stop...'
    sv shutdown -w 10 /var/service/getty-*

    echo 'Waiting for services to stop...'
    sv shutdown -w 300 /var/service/*

Those won't work -- the -w argument has to come *first*. It throws a syntax error otherwise (which I'll admit is hard to catch given the circumstances), and then the system goes down uncleanly.

Apart from that, these should probably be force-shutdown instead: if any console is logged in it'll just wait around for 310 seconds and eventually do nothing. Both sysvinit and s-s-d have somewhat more assertive behaviour there.
Comment 1 William Hubbs gentoo-dev 2014-11-13 19:33:45 UTC
This is fixed in 2.1.2.