summaryrefslogtreecommitdiff
path: root/src/op_mode/powerctrl.py
AgeCommit message (Collapse)Author
2024-07-05op-mode: T6537: remove unused cmd imported from vyos.utils.processChristian Breunig
Commit dc60fe99350 ("op-mode: T6537: include hostname in the reboot/shutdown warning message") added a more local import of vyos.utils.process.cmd() that made the fglobal import obsolete and trigger a linter warning. $ make unused-imports -------------------------------------------------------------------- Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)
2024-07-03op-mode: T6537: include hostname in the reboot/shutdown warning messageDaniil Baturin
2024-06-19op-mode: T5514: Allow safe reboots to config defaults when config.boot is ↵Andrew Topp
deleted * Added flag to vyos.config_mgmt.unsaved_commits() that will tolerate missing config.boot for specific circumstances * Shutdown/reboot uses this flag; config will regenerate from defaults after a reboot
2024-04-03T6199: drop unused Python importsChristian Breunig
found using "git ls-files *.py | xargs pylint | grep W0611"
2024-01-15op-mode: T5944: remove double whitespace in reboot error messageChristian Breunig
2024-01-14T5944: Fix reboot in argViacheslav Hletenko
Fix the arg for the `reboot in x` command The current arg is `--reboot_in [Minutes ...]` The expected arg is `--reboot-in [Minutes ...]`
2023-07-14T5195: vyos.util -> vyos.utils package refactoring (#2093)Christian Breunig
* T5195: move run, cmd, call, rc_cmd helper to vyos.utils.process * T5195: use read_file and write_file implementation from vyos.utils.file Changed code automatically using: find . -type f -not -path '*/\.*' -exec sed -i 's/^from vyos.util import read_file$/from vyos.utils.file import read_file/g' {} + find . -type f -not -path '*/\.*' -exec sed -i 's/^from vyos.util import write_file$/from vyos.utils.file import write_file/g' {} + * T5195: move chmod* helpers to vyos.utils.permission * T5195: use colon_separated_to_dict from vyos.utils.dict * T5195: move is_systemd_service_* to vyos.utils.process * T5195: fix boot issues with missing imports * T5195: move dict_search_* helpers to vyos.utils.dict * T5195: move network helpers to vyos.utils.network * T5195: move commit_* helpers to vyos.utils.commit * T5195: move user I/O helpers to vyos.utils.io
2023-07-12T5195: move boot_* helpers to vyos.utils.bootChristian Breunig
2023-06-28T5320: check if unsaved commits are due to boot config errorJohn Estabrook
2023-06-06op-mode: T5262: use module function instead of methodJohn Estabrook
2023-06-06op mode: T5262: add a warning message about unsaved config changesDaniil Baturin
on reboot and shutdown attempts
2022-02-20T4115:Reboot:Options "in" and "at" are not workingsrividya0208
When reboot is executed with "in" option it only accepts minutes till 99 value and does not accept greater values and "at" is also working same like in option where as it should work with exact timings.
2021-09-26op-mode: reboot/poweroff: T3857: send wall message to all usersChristian Poessinger
2021-02-02powerctl: Fix typoerkin
2020-11-13powerctl: T3066: Calculate minutes over 60DmitriyEshenko
2020-04-27powerctl: T2010: bugfix "TypeError: 'NoneType' object is not subscriptable"Christian Poessinger
Commit d6384b2 ("powerctl: T2010: report reboot time in current timezone") added a migrator from UTC to local timezone but reading in the base value up for conversion was done outside the proper if/else clause leading to a: TypeError: 'NoneType' object is not subscriptable
2020-04-26powerctl: T2010: fix "wall" complaining about inapproriate ioctlChristian Poessinger
wall: cannot get tty name: Inappropriate ioctl for device - script is run in the background where there is normally no tty available - silently discard this warning.
2020-04-26powerctl: T2010: report reboot time in current timezoneChristian Poessinger
Do not inform the user when the reboot will happen in UTC, use the local timezone instead.
2020-04-26powerctl: import lessChristian Poessinger
2020-04-26powerctl: T2010: reformat with autopep8Christian Poessinger
2020-04-11util: T2226: send shutdown stdout back to the programThomas Mangin
The previous code conversion did not match the previous code.
2020-04-09util: T2226: os.system was wrongly converted to runThomas Mangin
os.system does print the ouput of the command, run() does not. A new function called call() does the printing and return the error code.
2020-04-06util: T2226: rewrite powerctl to use run,cmdThomas Mangin
2020-01-09powerctr: T1842: Use systemd files for detect scheduleDmitriyEshenko
2019-12-09T1855, T1826: Restore support for reboot/poweroff in M minutes.Daniil Baturin
2019-12-06T1855, T1826: clean up the reboot/shutdown script.Daniil Baturin
2019-12-04shutdown: T1826: Modify cancel reboot msgViacheslav Hletenko
2019-08-23[op-mode] T1607 rewrite 'reset conntrack', 'reset & show ip[v6]' to ↵Dmytro Aleksandrov
python/xml syntax
2018-11-04Add missing VyOS copyright noticesChristian Poessinger
2018-10-10T870: Commit-confirm restarts the server even after commithagbard
- adding removal of the at job and /var/run/confirm.job - indent fixed
2018-08-19T689: Reboot/Poweroff now not working after last changesRunar Borge
2018-08-17T689: Added support for specifying date on poweroff and rebootRunar Borge
2018-08-16T689: Rewritten poweroff/reboot script to use systemd-shutdownd serviceRunar Borge