Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 688 Bytes

README.md

File metadata and controls

32 lines (21 loc) · 688 Bytes

Overview

A cross-platform module for reboot / restart and shutdown of current system. If you need it on Linux, 'sudo chmod u+s /sbin/shutdown' 'sudo chmod u+s /sbin/reboot' or modify sudoers file

Usage

Here's an example on how to use this module:

from rebooter import Rebooter

Rebooter(operation='reboot', delay=False, reason=None, force=False)

More info

On Mac delay, reason and force are not used.

TODO

  • sleep / hibernate
  • logout