25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Wouter Horlings b40f30fd5b added a script that adds files after the computer has been started 6 년 전
..
README.md fixed a typo in the command 6 년 전
pythoncreatelog.service added a script that adds files after the computer has been started 6 년 전
pythoncreatelog.timer added a script that adds files after the computer has been started 6 년 전
pythontaskcheck.service Fixes that the timer was not set correctly at boot 6 년 전
pythontaskcheck.timer Fixes that the timer was not set correctly at boot 6 년 전
settimer.sh added a script that adds files after the computer has been started 6 년 전

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 daemon-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