mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-29 10:10:19 +00:00
Add nslcd.service as a dependency to the services that depend on users and groups defined in LDAP. deluged, mldonkey-server, syncthing@syncthing and transmission-daemon services depend on freedombox-share LDAP group. Closes #2061 Tests done with apps deluge, mldonkey, syncthing and transmission, in both debian stable and testing dev containers, after applying changes: - After installing an app and after reboot, the daemon user is a member of the freedombox-share group. - Checked with the `systemctl show` command that nslcd.service is added to After=... dependencies. - All the functional tests pass (in Debian stable, closed manually the syncthing usage reporting form - #2059). Signed-off-by: Veiko Aasa <veiko17@disroot.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
36 lines
829 B
Plaintext
36 lines
829 B
Plaintext
[Unit]
|
|
Description=MLDonkey: Multi-protocol, peer-to-peer file sharing server
|
|
After=syslog.target network.target nslcd.service
|
|
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
|
|
ProtectControlGroups=yes
|
|
ProtectHome=yes
|
|
ProtectKernelLogs=yes
|
|
ProtectKernelModules=yes
|
|
ProtectKernelTunables=yes
|
|
ProtectSystem=full
|
|
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
|