1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
[Unit]
Description=Mirrorbits Redirector (%i)
Documentation=https://github.com/etix/mirrorbits/wiki
After=network.target
ConditionPathExists=/etc/mirrorbits/%i.conf
[Service]
Type=notify
User=mirrorbits
Group=mirrorbits
ConfigurationDirectory=mirrorbits
LogsDirectory=mirrorbits/%i
RuntimeDirectory=mirrorbits/%i
Environment=DAEMON_ARGS=
ExecStart=/usr/bin/mirrorbits daemon -config ${CONFIGURATION_DIRECTORY}/%i.conf \
-log ${LOGS_DIRECTORY}/daemon.log -p ${RUNTIME_DIRECTORY}/pid $DAEMON_ARGS
ExecReload=/bin/kill -HUP $MAINPID
ExecStop=-/bin/kill -QUIT $MAINPID
TimeoutStopSec=5
KillMode=mixed
Restart=on-failure
CapabilityBoundingSet=
LockPersonality=true
MemoryDenyWriteExecute=true
NoNewPrivileges=true
PrivateDevices=true
PrivateTmp=true
PrivateUsers=true
ProtectClock=true
ProtectControlGroups=true
ProtectHome=true
ProtectHostname=true
ProtectKernelLogs=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectProc=invisible
ProtectSystem=strict
RemoveIPC=true
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
RestrictNamespaces=true
RestrictRealtime=true
RestrictSUIDSGID=true
SystemCallArchitectures=native
SystemCallFilter=@system-service
SystemCallFilter=~@privileged
[Install]
WantedBy=multi-user.target
|