|
|
vor 6 Jahren | |
|---|---|---|
| .. | ||
| README.md | vor 6 Jahren | |
| pythoncreatelog.service | vor 6 Jahren | |
| pythoncreatelog.timer | vor 6 Jahren | |
| pythontaskcheck.service | vor 6 Jahren | |
| pythontaskcheck.timer | vor 6 Jahren | |
| settimer.sh | vor 6 Jahren | |
Easiest way is to run settimer.sh from inside the git repo.
The scripts expect that the virtual environment for python is already setup correctly in .venv
In pythontaskcheck.timer replace [[path_to_repo]] with the absolute path to the repo root.
Move pythontaskcheck.timer and pytontaskcheck.service to the $XDG_RUNTIME_DIR/systemd/user/ dir.
Run the following commands to enable the scheduled execution.
$ systemctl --user daemon-reload
$ systemctl --user enable pythontaskcheck.timer
$ systemctl --user start pythontaskcheck.timer
$ systemctl --user start pythontaskcheck.service
executes the script via systemd.
$ systemctl list-timers --user
shows the list with timers. Yours should be listed here.
Current setup will trigger the script every 5 minutes from 9:00 till 17:55