From 9525c38c1c2bfba4163e0972efe5343735504eb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferit=20Yi=C4=9Fit=20BALABAN?= Date: Fri, 17 Nov 2023 18:17:07 +0300 Subject: [PATCH] + temp. monitor systemd service and timer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ferit Yiğit BALABAN --- monitor_temp.service | 7 +++++++ monitor_temp.timer | 10 ++++++++++ 2 files changed, 17 insertions(+) create mode 100644 monitor_temp.service create mode 100644 monitor_temp.timer diff --git a/monitor_temp.service b/monitor_temp.service new file mode 100644 index 0000000..7018fe2 --- /dev/null +++ b/monitor_temp.service @@ -0,0 +1,7 @@ +[Unit] +Description=Monitors core temperature and runs GPIO fan + +[Service] +Type=simple +ExecStart=/opt/fan_control 55 5 + diff --git a/monitor_temp.timer b/monitor_temp.timer new file mode 100644 index 0000000..0a3a566 --- /dev/null +++ b/monitor_temp.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Runs temperature monitoring every minute + +[Timer] +OnCalendar=*-*-* *:*:00 +Persistent=true + +[Install] +WantedBy=timers.target +