Запуск rtorrent в systemd в 12.3

Нужно запускать rtorrent при загрузке системы для связки с rutorrent.
Откопал скрипт от archlinux:


** linux-nas:~ # cat /usr/lib/systemd/system/rtorrent-root.service 
             
             [Unit]
             Description=rTorrent
             After=syslog.target network.target remote-fs.target nss-lookup.target
             
             [Service]
             Type=forking
             User=root
             ExecStart=/usr/bin/tmux new-session -s rt -d rtorrent
             ExecStop=/usr/bin/tmux kill-session -t rt
             
             [Install]
             WantedBy=multi-user.target

**

Если сделать systemctl start rtorrent-root.service то все работает. Но при загрузке не работает. Кто знает почему?


linux-nas:~ # systemctl status rtorrent-root.service 
rtorrent-root.service - rTorrent
          Loaded: loaded (/usr/lib/systemd/system/rtorrent-root.service; enabled)
          Active: failed (Result: exit-code) since Sat, 2013-03-23 11:05:28 MSK; 1min 2s ago
         Process: 1363 ExecStop=/usr/bin/tmux kill-session -t rt (code=exited, status=1/FAILURE)
         Process: 1315 ExecStart=/usr/bin/tmux new-session -s rt -d rtorrent (code=exited, status=0/SUCCESS)
        Main PID: 1340 (code=exited, status=0/SUCCESS)
          CGroup: name=systemd:/system/rtorrent-root.service

Mar 23 11:05:27 linux-nas.site systemd[1]: Starting rTorrent...
Mar 23 11:05:28 linux-nas.site systemd[1]: Started rTorrent.
Mar 23 11:05:28 linux-nas.site tmux[1363]: failed to connect to server
Mar 23 11:05:28 linux-nas.site systemd[1]: Unit rtorrent-root.service entered failed state
linux-nas:~ # systemctl start rtorrent-root.service 
linux-nas:~ # systemctl status rtorrent-root.service 
rtorrent-root.service - rTorrent
          Loaded: loaded (/usr/lib/systemd/system/rtorrent-root.service; enabled)
          Active: active (running) since Sat, 2013-03-23 11:06:54 MSK; 2s ago
         Process: 1363 ExecStop=/usr/bin/tmux kill-session -t rt (code=exited, status=1/FAILURE)
         Process: 3286 ExecStart=/usr/bin/tmux new-session -s rt -d rtorrent (code=exited, status=0/SUCCESS)
        Main PID: 3288 (tmux)
          CGroup: name=systemd:/system/rtorrent-root.service
                  ├ 3288 /usr/bin/tmux new-session -s rt -d rtorrent
                  └ 3289 rtorrent

Mar 23 11:06:54 linux-nas systemd[1]: Starting rTorrent...
Mar 23 11:06:54 linux-nas systemd[1]: Started rTorrent.

Посмотрите

systemctl show rtorrent-root.service
systemd-journalctl -o verbose -u rtorrent-root.service

Короче от пользователя, не root работает, если указать

**User=пользователь
**
и создать все нужные файлы и каталоги

в итоге **


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

[Service]
Type=forking
ExecStart=/usr/bin/tmux new-session -s rt -d rtorrent
ExecStop=/usr/bin/tmux kill-session -t rt
User=rtor
KillMode=none

[Install]
WantedBy=multi-user.target

**