Systemd

From Leaky
Revision as of 18:45, 6 August 2017 by Leaky (talk | contribs) (systemd tips)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Project page: https://freedesktop.org/wiki/Software/systemd/

Page with some useful info: https://wiki.archlinux.org/index.php/Systemd

Assorted commands

Reload all units

systemctl daemon-reload

Equivalent of

chkconfig unitname on

is

systemctl enable unitname

Equivalent of

service unitname start

is

systemctl start unitname

If you've created a file in /etc/systemd/system/ and you need to edit it, you can use

systemctl edit --full unitname

This will open the file in your editor and reload it afterwards. If you've edited the file directly, simply reload it afterwards with

systemctl reenable unitname