mat~wiki

My personal wiki

systemd


/index

/technology

systemd is a wacky daemon manager and init. Just leaving some useful notes because my server runs Fedora.

Template

A daemon template for future use

[Unit]
Description = ...

Wants = network.target
After = network.target

[Service]
User = ...
Group = ...
Nice = 5

SuccessExitStatus = 0

ProtectHome = true
ProtectSystem = full
PrivateDevices = true
NoNewPrivileges = true
PrivateTmp = true

InaccessibleDirectories = /root /sys /var
ReadWriteDirectories = ...
WorkingDirectory = ...

ExecStart = ...
[Install]
WantedBy = multi-user.target