diff --git a/fancontrol.cpp b/fancontrol.cpp index bcb628f..5f448fd 100644 --- a/fancontrol.cpp +++ b/fancontrol.cpp @@ -48,7 +48,7 @@ const static int pwmmax = 255; // Max PWM value, do not change const static uint8_t port = 0x2e; const static uint8_t fanspeed = 200; static uint16_t ecbar = 0x00; -const static char * synostoragedir = "/run/disks"; +const static char * synostoragedir = "/opt/disks"; void iowrite(uint8_t reg, uint8_t val) { outb(reg, port); diff --git a/fancontrol.service b/fancontrol.service new file mode 100644 index 0000000..6776aba --- /dev/null +++ b/fancontrol.service @@ -0,0 +1,9 @@ +[Unit] +Description=Fancontrol + +[Service] +ExecStart=/usr/local/bin/fancontrol 0 43 +Restart=on-failure + +[Install] +WantedBy=multi-user.target