Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 521918 - sys-process/runit-2.1.1 - files/3 calls sv arguments in wrong order
Summary: sys-process/runit-2.1.1 - files/3 calls sv arguments in wrong order
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: William Hubbs
Depends on:
Reported: 2014-09-01 23:29 UTC by Anthony Parsons
Modified: 2014-11-13 19:33 UTC (History)
2 users (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Anthony Parsons 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.