Quantcast
Channel: help - Forum - FlexGet
Viewing all articles
Browse latest Browse all 837

Linux: Need help with systemd settings in linux

$
0
0

@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 execute

However, 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.target

and ceated > /etc/systemd/system/flexget.service
with the following inside:

[Unit]
Description=Run flexget

[Service]
ExecStart=/usr/local/bin/flexget execute

To enable at boot
sudo systemctl enable flexget.timer
To start
sudo systemctl start flexget.timer
To stop
sudo systemctl stop flexget.timer
To check
sudo systemctl status flexget.timer
sudo systemctl list-timers --all
To run manually
sudo systemctl start flexget.service

The timer and the service are fine but flexget does not execute :confused:
Help!

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 837

Trending Articles