You are not logged in.
Pages: 1
This unit no longer works after upgrade to 243. Reverting to 242.84-2 returns it to function.
[Unit]
Description=rTorrent
Wants=network-online.target
After=network-online.target
[Service]
Type=forking
KillMode=none
RemainAfterExit=yes
User=rtorrent
ExecStartPre=/usr/bin/bash -c "if test -e /srv/rtorrent/session/rtorrent.lock && test -z `pidof rtorrent`; then rm -f /srv/rtorrent/session/rtorrent.lock; fi"
ExecStart=/usr/bin/tmux new-session -s rt -n rtorrent -d rtorrent
ExecStop=/usr/bin/tmux send-keys -t rt:rtorrent C-q
WorkingDirectory=%h
Restart=on-failure
[Install]
WantedBy=multi-user.targetLast edited by DYSEQTA (2019-09-18 01:14:10)
Offline
This unit no longer works...
https://bbs.archlinux.org/viewtopic.php?id=57855
Moving to NC...
Offline
I solved this myself. The new 243 version of systemd doesn't like %h for WorkingDirectory and was giving permission denied errors. I explicitly declared the home directory of the rtorrent user and it works again.
Offline
That's because %h doesn't do what you think it does
"%h" User home directory This is the home directory of the user running the service manager instance. In case of the system manager this resolves to "/root". Note that this setting is not influenced by the User= setting configurable in the [Service] section of the service unit.
which makes me wonder what weirdness happened to make this work before.
Offline
Pages: 1