From 0cc668ad9f121cf9330054f08b921a37045b8c73 Mon Sep 17 00:00:00 2001 From: Hofei90 <29521028+Hofei90@users.noreply.github.com> Date: Wed, 6 May 2020 06:54:40 +0200 Subject: [PATCH] add systemd files --- systemdfiles/cod_stats.service | 10 ++++++++++ systemdfiles/cod_stats.timer | 9 +++++++++ 2 files changed, 19 insertions(+) create mode 100644 systemdfiles/cod_stats.service create mode 100644 systemdfiles/cod_stats.timer diff --git a/systemdfiles/cod_stats.service b/systemdfiles/cod_stats.service new file mode 100644 index 0000000..391f442 --- /dev/null +++ b/systemdfiles/cod_stats.service @@ -0,0 +1,10 @@ +[Unit] +Description=Call of Duty Statistiken lesen + +[Service] +Type=simple +ExecStart=/home/pi/cod_stats_tracker/venv/bin/python3 /home/pi/cod_stats_tracker/get_cod_stats.py +User=pi + +[Install] +WantedBy=multi-user.target diff --git a/systemdfiles/cod_stats.timer b/systemdfiles/cod_stats.timer new file mode 100644 index 0000000..8a688bf --- /dev/null +++ b/systemdfiles/cod_stats.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Timer zum Aufruf der Call of Duty Statistiken lesen + +[Timer] +OnCalendar=*-*-* 00,08,16,20:00:00 +Unit=cod_stats.service + +[Install] +WantedBy=multi-user.target \ No newline at end of file