我正在将 Transmission-daemon 作为 systemd 服务运行。
ExecStart=/usr/bin/transmission-daemon -f --log-error -e <path>
我在其中尝试了具有通用写入权限的路径的不同值。日志文件已成功创建,但为空。
systemctl status
报告
Nov 18 07:39:48 flip systemd[1]: Starting Transmission BitTorrent Daemon...
Nov 18 07:39:48 flip systemd[1]: Started Transmission BitTorrent Daemon.
Nov 18 07:39:48 flip transmission-daemon[1207119]: sendto: Operation not permitted
Nov 18 07:39:48 flip transmission-daemon[1207119]: sendto: Operation not permitted
Nov 18 07:39:48 flip transmission-daemon[1207119]: sendto: Operation not permitted
Nov 18 07:39:48 flip transmission-daemon[1207119]: sendto: Operation not permitted
由@binarysta 请求
[Unit]
Description=Transmission BitTorrent Daemon
After=network.target
[Service]
User=transmission
Type=notify
ExecStart=/usr/bin/transmission-daemon -f --log-error -e /mnt/ram/log/transmission-daemon.log
ExecReload=/bin/kill -s HUP $MAINPID
NoNewPrivileges=true
[Install]
WantedBy=multi-user.target