Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 669500 - sys-apps/openrc-0.39 - "openrc-shutdown: No shutdown time specified" error message
Summary: sys-apps/openrc-0.39 - "openrc-shutdown: No shutdown time specified" error me...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-24 14:34 UTC by email200202
Modified: 2018-10-25 15:27 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description email200202 2018-10-24 14:34:42 UTC
After the update to sys-apps/openrc-0.39, I noticed that the following error message started to appear during shutdown:

 * Stopping NetworkManager ...
 [ ok ]
 * Stopping consolekit ...
 [ ok ]
 * Stopping metalog ...
 [ ok ]
 * Stopping dbus ...
 [ ok ]
 * openrc-shutdown: No shutdown time specified
Usage: openrc-shutdown [options] 

Options: [ cdDfFHKpRrswChqVv ]
  -c, --cancel                      cancel a pending shutdown
  -d, --no-write                    do not write wtmp record
  -D, --dry-run                     print actions instead of executing them
  -H, --halt                        halt the system
  -K, --kexec                       reboot the system using kexec
  -p, --poweroff                    power off the system
  -R, --reexec                      re-execute init (use after upgrading)
  -r, --reboot                      reboot the system
  -s, --single                      single user mode
  -w, --write-only                  write wtmp boot record and exit
  -h, --help                        Display this help output
  -C, --nocolor                     Disable color output
  -V, --version                     Display software version
  -v, --verbose                     Run verbosely
  -q, --quiet                       Run quietly (repeat to suppress errors)
 * Unmounting loop devices
 * Unmounting filesystems

The source of the error is the openrc-shutdown command in /etc/init.d/bootmisc:

stop()
{
    # Write a halt record if we're shutting down
    if [ "$RC_RUNLEVEL" = shutdown ]; then
        [ "$RC_UNAME" = Linux ] && openrc-shutdown -w

Adding argument "now" will fix the problem, i.e. it should be 

        [ "$RC_UNAME" = Linux ] && openrc-shutdown -w  now
Comment 1 William Hubbs gentoo-dev 2018-10-24 20:10:58 UTC
Since this is just being used to write a wtmp record, there is no need
for a shutdown time. I will rework this to process without requiring one.
Comment 2 William Hubbs gentoo-dev 2018-10-25 15:27:31 UTC
This is fixed in 0.39.1.