k 3 rtorrent: always restart

on-failure does not seem to be enough to save it from crashing
This commit is contained in:
makefu 2017-01-09 15:57:32 +01:00
parent c22c74b05d
commit b1b24e4759
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225

View File

@ -224,13 +224,14 @@ let
cp -f ${configFile} ${cfg.workDir}/.rtorrent.rc cp -f ${configFile} ${cfg.workDir}/.rtorrent.rc
''; '';
ExecStart = "${pkgs.tmux}/bin/tmux new-session -s rt -n rtorrent -d 'PATH=/bin:/usr/bin:${makeBinPath rutorrent-deps} ${cfg.package}/bin/rtorrent'"; ExecStart = "${pkgs.tmux}/bin/tmux new-session -s rt -n rtorrent -d 'PATH=/bin:/usr/bin:${makeBinPath rutorrent-deps} ${cfg.package}/bin/rtorrent'";
Restart = "always";
RestartSec = "10";
## you can simply sudo -u rtorrent tmux a if privateTmp is set to false ## you can simply sudo -u rtorrent tmux a if privateTmp is set to false
## otherwise the tmux session is stored in some private folder in /tmp ## otherwise the tmux session is stored in some private folder in /tmp
PrivateTmp = false; PrivateTmp = false;
WorkingDirectory = cfg.workDir; WorkingDirectory = cfg.workDir;
Restart = "on-failure";
User = "${cfg.user}"; User = "${cfg.user}";
}; };
}; };