May 02, 2016

Flexget iwth Systemd in Ubuntu 15 & 16

Assumptions:

Config & DB Location: /etc/flexget/
User: debian-deluged
Group: debian-deluged

chown -R debian-deluged:debian-deluged /etc/flexget

nano /etc/systemd/system/flexget.service

[Unit]
Description=Flexget Daemon
After=network.target
[Service]
Type=simple
User=debian-deluged
Group=debian-deluged
UMask=022
WorkingDirectory=/etc/flexget/
ExecStart=/usr/local/bin/flexget --logfile /var/log/flexget.log --loglevel verbose daemon start
ExecStop=/usr/local/bin/flexget daemon stop
Restart=Always
TimeoutStopSec=300
[Install]
WantedBy=multi-user.target

systemctl enable flexget.service
systemctl start flexget

No comments: