@tomatosmoothie wrote:
Followed this tutorial on Scheduling and got the job running using Using systemd/timers:
systemd-run --on-active="1h" --uid=
id -u
--gid=id -g
which flexget
executeHowever, when I woke up the next morning and ran
systemctl list-timers
the timer created was gone.I know its possible to use the flexget daemon with scheduler in the config.yml and alternatively a chron job (which I have done in the past) but since System.d/systemctl is supposed to be the "better" option to the old chron job have been trying to get it working.
Tried the following:
created > /etc/systemd/system/flexget.timer
with the following inside:[Unit]
Description=Run flexget hourly[Timer]
OnCalendar=hourly
RandomizedDelaySec=5m
Persistent=true[Install]
WantedBy=timers.targetand ceated > /etc/systemd/system/flexget.service
with the following inside:[Unit]
Description=Run flexget[Service]
ExecStart=/usr/local/bin/flexget executeTo enable at boot
sudo systemctl enable flexget.timer
To startsudo systemctl start flexget.timer
To stopsudo systemctl stop flexget.timer
To checksudo systemctl status flexget.timer
sudo systemctl list-timers --all
To run manuallysudo systemctl start flexget.service
The timer and the service are fine but flexget does not execute
Help!
Posts: 3
Participants: 2