mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-29 10:10:19 +00:00
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
37 lines
845 B
Plaintext
37 lines
845 B
Plaintext
[Unit]
|
|
Description=MLDonkey: Multi-protocol, peer-to-peer file sharing server
|
|
After=syslog.target network.target
|
|
ConditionPathExists=/var/lib/mldonkey/downloads.ini
|
|
Documentation=man:mlnet(1) http://mldonkey.sourceforge.net/Main_Page
|
|
|
|
[Service]
|
|
ExecStart=
|
|
ExecStart=/usr/bin/mlnet
|
|
ExecStop=
|
|
Group=mldonkey
|
|
IgnoreSIGPIPE=yes
|
|
KillMode=control-group
|
|
LockPersonality=yes
|
|
NoNewPrivileges=yes
|
|
PrivateDevices=yes
|
|
PrivateMounts=yes
|
|
PrivateTmp=yes
|
|
PrivateUsers=yes
|
|
ProtectControlGroups=yes
|
|
ProtectHome=yes
|
|
ProtectKernelModules=yes
|
|
ProtectKernelTunables=yes
|
|
ProtectSystem=strict
|
|
ReadWritePaths=/var/lib/mldonkey
|
|
RemainAfterExit=no
|
|
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
|
|
RestrictRealtime=yes
|
|
StateDirectory=mldonkey
|
|
SystemCallArchitectures=native
|
|
Type=simple
|
|
User=mldonkey
|
|
WorkingDirectory=/var/lib/mldonkey
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|