SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG
DONATE


YUM REPOSITORY

 
 

MAN page from OpenSuSE rebootmgr-0.15-13.1.x86_64.rpm

REBOOTMGRCTL

Section: rebootmgrctl (1)
Updated: 03/31/2017
Index 

NAME

rebootmgrctl - Tool to control and configure the reboot manager daemon. 

SYNOPSIS

rebootmgrctl [--help | --version]
rebootmgrctl is-active [--quiet]
rebootmgrctl reboot [fast | now]
rebootmgrctl cancel
rebootmgrctl status [--quiet]
rebootmgrctl set-strategy best-effort | etcd-lock | maint-window | instantly | off
rebootmgrctl get-strategy
rebootmgrctl set-group group
rebootmgrctl get-group
rebootmgrctl set-window time duration
rebootmgrctl get-window
rebootmgrctl set-max [--group group] number
rebootmgrctl lock [--group group] [machine-id]
rebootmgrctl unlock [--group group] [machine-id]
 

DESCRIPTION

rebootmgrctl

is used to query and configure therebootmgrd(8)process. 

OPTIONS

--help

display help text and exit

--version

output version information and exit

cancel

Cancels an already running reboot.

is-active [--quiet]

Prints if the rebootmgrd is running and active or not. With the[--quiet]option,rebootmgrctldoes not print any output, but returns1ifrebootmgrdis running or0if not.

reboot [fast|now]

Tells rebootmgr to schedule a reboot. With the[now]option, a forced reboot is done, no lock frometcdis requested and a set maintenance window is ignored. With the[fast]option, a lock frometcdis requested if needed, but a defined maintenance window is ignored.

status [--quiet]

Prints the current status ofrebootmgrd, including current data structure stored in etcd if available. With the[--quiet]option,rebootmgrctldoes not print any output, but returns the current reboot status as return value. Valid values are:

0

No reboot requested

1

Reboot requested

2

Reboot requested, waiting for maintenance window

3

Reboot requested, waiting for etcd lock.

set-strategy best-effort|etcd-lock|maint-window|instantly|off

A new strategy to reboot the machine is set and written into/etc/rebootmgr.conf.

best-effort

This is the default strategy. Ifetcdis running,etcd-lockis used. If noetcdis running, but a maintenance window is specified, the strategy will bemaint-window. If no maintenance window is specified, the machine is immediately rebooted (instantly).

etcd-lock

A lock atetcdfor the specifiedlock-groupwill be acquired before reboot. If a maintenance window is specified, the lock is only acquired during this window.

maint-window

Reboot does happen only during a specified maintenance window. If no window is specified, theinstantlystrategy is followed.

instantly

Other services will be informed that a reboot will happen. Reboot will be done without getting any locks or waiting for a maintenance window.

off

Reboot requests are temporary ignored./etc/rebootmgr.confis not modified.

get-strategy

The currently used reboot strategy ofrebootmgrdwill be printed.

set-window time duration

Set's the maintenance window. The format oftimeis the same as described insystemd.time(7). The format ofdurationis[XXh][YYm].

get-window

The currently set maintenance window will be printed.

set-group etcd-lock-group

Set's the group, to which this machine belongs to get a reboot lock frometcd.

get-group

The currently set lock group foretcd.

set-max [--group group] number

Set the maximal number of hosts in a group, which are allowed to reboot at the same time.

lock [--group group] [machine-id]

Lock a machine. If nogroupis specified, the local default group will be used. If nomachine-idis specified, the local machine will be locked.

The machine-id is a network wide, unique ID. Per default the ID from/etc/machine-idis used.

unlock [--group group] [machine-id]

Unlock a machine. If nogroupis specified, the local default group will be used. If nomachine-idis specified, the local machine will be unlocked.
 

SEE ALSO

systemd.time(7) 

AUTHOR

Thorsten Kukuk <kukukAATTsuse.de>


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
SEE ALSO
AUTHOR

This document was created byman2html,using the manual pages.