Jan Engelhardt
e894f42341
Automatic systemd hardening effort by the security team. This has not been tested. For details please see https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort OBS-URL: https://build.opensuse.org/request/show/932187 OBS-URL: https://build.opensuse.org/package/show/filesharing/rtorrent?expand=0&rev=7
29 lines
724 B
Desktop File
29 lines
724 B
Desktop File
[Unit]
|
|
Description=rTorrent daemon
|
|
Requires=network.target local-fs.target
|
|
|
|
[Service]
|
|
# added automatically, for details please see
|
|
# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
|
|
ProtectSystem=full
|
|
PrivateDevices=true
|
|
ProtectHostname=true
|
|
ProtectClock=true
|
|
ProtectKernelTunables=true
|
|
ProtectKernelModules=true
|
|
ProtectKernelLogs=true
|
|
ProtectControlGroups=true
|
|
RestrictRealtime=true
|
|
# end of automatic additions
|
|
Type=forking
|
|
RemainAfterExit=yes
|
|
KillMode=none
|
|
EnvironmentFile=-/etc/sysconfig/rtorrent
|
|
ExecStart=/usr/bin/screen -d -m -S rtorrentd /usr/bin/rtorrent
|
|
ExecStop=/usr/bin/screen -S rtorrentd -X quit
|
|
User=rtorrent
|
|
Group=rtorrent
|
|
WorkingDirectory=~
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |