You are not logged in.

#1 2013-11-27 05:51:39

solixxx
Member
Registered: 2013-03-11
Posts: 10

start rtorrent in tmux with systemd

I am trying to setup a server with rtorrent, but it closes or will not run.

[Unit]
Description=rTorrent
Requires=network.target local-fs.target

[Service]
Type=oneshot
RemainAfterExit=yes
KillMode=none
User=nobody
ExecStart=/usr/bin/tmux new-session -s rt -n rtorrent -d rtorrent
ExecStop=/usr/bin/tmux send-keys -t rt:rtorrent C-q

[Install]
WantedBy=multi-user.target

I following commands, works find in terminal.

[root@Server ~]# sudo -u nobody tmux new-session -s rt -n rtorrent -d rtorrent
[root@Server ~]# sudo -u nobody tmux send-keys -t rt:rtorrent C-q
[root@Server ~]# sudo -u nobody tmux attach -t rt

So it is not because rtorrent cannot run as nobody, so does anyone know what I am doing wrong?

Offline

#2 2013-11-27 05:58:05

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: start rtorrent in tmux with systemd

Not an Arch discussion, moving to Apps & DEs...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB