Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
Wouter Horlings 413f687c9e added a script that installs the timers in the correct location. And updated the readme in that folder il y a 6 ans
..
README.md added a script that installs the timers in the correct location. And updated the readme in that folder il y a 6 ans
pythontaskcheck.service updated path to python-venv il y a 6 ans
pythontaskcheck.timer added config files for the systemd.timer environment and documentation for use il y a 6 ans
settimer.sh added a script that installs the timers in the correct location. And updated the readme in that folder il y a 6 ans

README.md

Installation of timer files

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

Setting the correct path

In pythontaskcheck.timer replace [[path_to_repo]] with the absolute path to the repo root.

Setting up systemd.timer

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 deamon-reload
$ systemctl --user enable pythontaskcheck.timer
$ systemctl --user start pythontaskcheck.timer

Check if everything is working

$ systemctl --user start pythontaskcheck.service

executes the script via systemd.

$ systemctl list-timers --user 

shows the list with timers. Yours should be listed here.

updating the time.

Current setup will trigger the script every 5 minutes from 9:00 till 17:55