Systemd
Systemd🔗
= ("[Website](" + this.website + ")")
| = ("[Github](" + this.github + ")")
| = ("[Documentation](" + this.docs + ")")
Commands🔗
1 2 3 4 |
|
- analyse boot as plot to analyse startup process and to examine dependencies
1 |
|
Virtualisation and Containerisation🔗
The package systemd-container
includes tools for management of virtual machines and containers.
machinectl
may be used to introspect and control the state of the systemd virtual machine and container registration manager systemd-machined.service
This can be used to impersonate user (e.g. Docker process owner) and will properly give access to sockets etc. required to interact with hypervisors.
1 2 3 |
|
Service Files🔗
See man systemd.directives
for available stanzas.
- Condition and Asserts: “Before the unit is started, systemd will verify that the specified conditions and asserts are true”
Documentation🔗
Security🔗
Hardening systemd - Ubuntu version
Containers🔗
The Systemd package systemd-container
brings helpful tools to manage containers, i.e. machinectl
. Unlike su
this ensures that sockets etc., necessary for container management, are properly addresses.
1 2 3 |
|
References🔗
- Create a Systemd service @linuxhandbook.com
- service guidelines (for packaging) @suse.com
- create a service to run at boot @suse.com
- Controversies and alternatives @howtogeek
- homed: home directory management @howtogeek
Run service as user: []
- ensure resources such as scripts are readable by user
- add
User=...
andGroup=...
to[Service]
section