Skip to content

Commit

Permalink
Add systemd unit
Browse files Browse the repository at this point in the history
  • Loading branch information
arenekosreal committed May 10, 2024
1 parent 374e9c7 commit 555dda7
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions e5renewer.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[Unit]
Description=E5 Renewer Daemon
Wants=network-online.target
After=network-online.target

[Service]
ExecStart=E5Renewer -c /etc/e5renewer/config.json

User=e5renewer
DynamicUser=yes

NoNewPrivileges=yes

ProtectSystem=strict
ProtectHome=yes
RuntimeDirectory=e5renewer
ConfigurationDirectory=e5renewer
PrivateDevices=yes
PrivateNetwork=yes
PrivateUsers=yes
ProtectKernelTunables=yes
ProtectKernelModules=yes
ProtectControlGroups=yes
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
LockPersonality=yes

[Install]
WantedBy=multi-user.target

0 comments on commit 555dda7

Please sign in to comment.