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 +