drasl/example/drasl.service
Evan Goode f59962fee6 systemd service should call /usr/local/bin/drasl
The average consumer of this is someone installing Drasl via `make
install`, following the instructions in installation.md. Downstream
packagers will know to change this to /usr/bin/drasl.

Resolves https://github.com/unmojang/drasl/issues/48.
2024-03-21 11:11:45 -04:00

39 lines
687 B
Desktop File

[Unit]
Description=Drasl
After=network-online.target
[Service]
DynamicUser=true
ExecStart=/usr/local/bin/drasl
StateDirectory=drasl
Restart=always
# Hardening
ProtectSystem=strict
PrivateDevices=true
PrivateTmp=true
ProtectKernelLogs=true
ProtectProc=invisible
PrivateUsers=true
ProtectHome=true
UMask=0077
RestrictNamespaces=true
LockPersonality=true
NoNewPrivileges=true
ProtectKernelModules=true
SystemCallArchitectures=native
ProtectHostname=true
RestrictAddressFamilies=AF_INET AF_INET6
RestrictRealtime=true
ProtectControlGroups=true
ProtectKernelTunables=true
RestrictSUIDSGID=true
ProtectClock=true
RemoveIPC=true
CapabilityBoundingSet=
[Install]
WantedBy=multi-user.target