fakesystemctl - a hack to provide systemctl function https://gitea.artixlinux.org/linuxer/fakesystemctl
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
linuxer 1ab4b46b33
Update README.md
2 years ago
LICENSE Initial commit 2 years ago
README.md Update README.md 2 years ago
fakesystemctl systemctl is-active <service> added 2 years ago


fakesystemctl - a hack to provide systemctl function

An interface among nosystemd inits, to be executed with sudo/doas, for services management and power actions, ONLY WHEN NECESSARY, i.e. when systemctl command can't be removed, although the services have been removed, like Webmin or gnome-shell power actions extensions.

Available commands are:

  • systemctl enable <service>
  • systemctl start <service>
  • systemctl restart <service>
  • systemctl status <service>
  • systemctl stop <service>
  • systemctl status <service>
  • systemctl disable <service>
  • systemctl is-active <service>
  • systemctl hibernate
  • systemctl reboot
  • systemctl poweroff
  • systemctl suspend

Other info:

  • Licensed under GPL-2.0-only https://spdx.org/licenses/GPL-2.0-only.html

  • Code complies with shellcheck https://www.shellcheck.net

  • NOT for packaging purposes - I may be pulled by other packages PKGBUILDS, only when it is needed

  • (if the above changes, this README and code, will be modified accortingly)

  • Functions tested successfully with OpenRC, Runit, s6 and elogind environments

  • Link it as systemctl to your /usr/bin folder with sudo ln -S fakesystemctl /usr/bin/systemctl