-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Change base docker image * Rename variables and add logging * Add missing docker image to docker run example --------- Co-authored-by: Aitor Iturrioz <[email protected]>
- Loading branch information
1 parent
e1a074e
commit 7dde5ee
Showing
4 changed files
with
10 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
import logging | ||
import os | ||
|
||
logger = logging.getLogger(__name__) | ||
|
||
class ShutdownCommands: | ||
def __init__(self): | ||
pass | ||
|
||
def shutdown(self): | ||
logging.debug("Shutting down the device.") | ||
os.system("systemctl poweroff") | ||
|
||
def reboot(self): | ||
logging.debug("Rebooting the device.") | ||
os.system("systemctl reboot") |