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