[RESOLU][SystemD + Transmission] Closing transmission


#1

Bonjour a tous !!!

Tout d’abord, bonne annee a tous, meilleurs voeux, bohneur, sante !

J’ai donc un petit probleme avec transmission et systemd. J’ai bien reussit a installer transmission et le faire fonctionner avec systemd via l’user transmission, mais il se ferme en moins de 5 minutes.

Systemctl tourne pendant 2-3 minutes puis s’arrete, car transmission s’arrete aussi.

Les ports sont ouverts, transmission est configure pour etre lance par l’utilisateur “debian-transmission”, et l’interface web est ance, mais sera plus tard proxy via apache en SSL. Je veux tout de meme faire fonctionner transmission avant !

uname -a:

Linux xxxxx.xxx 3.2.0-4-amd64 #1 SMP Debian 3.2.63-2+deb7u2 x86_64 GNU/Linux

systemd-journal:

Jan 06 12:21:08 xxxxx.xxx systemd[1]: transmission.service operation timed out. Terminating.
Jan 06 12:21:09 xxxxx.xxx systemd[1]: Unit transmission.service entered failed state. 

cat /usr/lib/systemd/system/transmission.service (Fait a la main)

[Unit]
Description=Transmission BitTorrent Daemon
After=network.target

[Service]
User=debian-transmission
Type=notify
ExecStart=/usr/bin/transmission-daemon -f --log-error
ExecReload=/bin/kill -s HUP $MAINPID

[Install]
WantedBy=multi-user.target

systemctl status transmission.service

transmission.service - Transmission BitTorrent Daemon
          Loaded: loaded (/usr/lib/systemd/system/transmission.service; enabled)
          Active: failed (Result: timeout) since Tue, 06 Jan 2015 12:21:09 +0100; 13min ago
        Main PID: 3749
          CGroup: name=systemd:/system/transmission.service

Jan 06 12:21:08 xxxxx.xxx transmission-daemon[3749]: Closing transmission session... done.

cat /home/debian-transmission/.config/transmission-daemon/settings.json

{
    "alt-speed-down": 50, 
    "alt-speed-enabled": false, 
    "alt-speed-time-begin": 540, 
    "alt-speed-time-day": 127, 
    "alt-speed-time-enabled": false, 
    "alt-speed-time-end": 1020, 
    "alt-speed-up": 50, 
    "bind-address-ipv4": "0.0.0.0", 
    "bind-address-ipv6": "::", 
    "blocklist-enabled": false, 
    "blocklist-url": "http://www.example.com/blocklist", 
    "cache-size-mb": 4, 
    "dht-enabled": true, 
    "download-dir": "/var/lib/transmission-daemon/downloads", 
    "download-queue-enabled": true, 
    "download-queue-size": 5, 
    "encryption": 1, 
    "idle-seeding-limit": 30, 
    "idle-seeding-limit-enabled": false, 
    "incomplete-dir": "/var/lib/transmission-daemon/downloads", 
    "incomplete-dir-enabled": false, 
    "lpd-enabled": false, 
    "message-level": 1, 
    "peer-congestion-algorithm": "", 
    "peer-limit-global": 240, 
    "peer-limit-per-torrent": 60, 
    "peer-port": xxxxx, 
    "peer-port-random-high": 65535, 
    "peer-port-random-low": 49152, 
    "peer-port-random-on-start": false, 
    "peer-socket-tos": "default", 
    "pex-enabled": true, 
    "port-forwarding-enabled": false, 
    "preallocation": 1, 
    "prefetch-enabled": 1, 
    "queue-stalled-enabled": true, 
    "queue-stalled-minutes": 30, 
    "ratio-limit": 2, 
    "ratio-limit-enabled": false, 
    "rename-partial-files": true, 
    "rpc-authentication-required": false, 
    "rpc-bind-address": "0.0.0.0", 
    "rpc-enabled": true, 
    "rpc-password": "{e40a6f43062857776a516e368374362c914419bdhx8WsyKI", 
    "rpc-port": 9091, 
    "rpc-url": "/transmission/", 
    "rpc-username": "", 
    "rpc-whitelist": "127.0.0.1", 
    "rpc-whitelist-enabled": false, 
    "scrape-paused-torrents-enabled": true, 
    "script-torrent-done-enabled": false, 
    "script-torrent-done-filename": "", 
    "seed-queue-enabled": false, 
    "seed-queue-size": 10, 
    "speed-limit-down": 100, 
    "speed-limit-down-enabled": false, 
    "speed-limit-up": 100, 
    "speed-limit-up-enabled": false, 
    "start-added-torrents": true, 
    "trash-original-torrent-files": false, 
    "umask": 18, 
    "upload-slots-per-torrent": 14, 
    "utp-enabled": false
}

ps aux | grep transmission (pendant l’execution de systemctl)

root      3798  0.0  0.0  28196  1076 pts/1    S+   12:40   0:00 systemctl start transmission.service
109       3800  0.0  0.0 156796  3100 ?        Ssl  12:40   0:00 /usr/bin/transmission-daemon -f --log-error
root      3806  0.0  0.0   8320   892 pts/2    S+   12:40   0:00 grep transmission

Une idee de la source du probleme ???

Merci d’avance !


#2

Probleme resolu !
Changer le type par ‘simple’ au lieu de ‘notify’.

Merci !