rebooter

Cross platform Python module for easy system restart reboot and shutdown


Keywords
reboot, restart, shutdown
License
Other
Install
pip install rebooter==0.2

Documentation

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