truenas-spindown-timer icon indicating copy to clipboard operation
truenas-spindown-timer copied to clipboard

[Request] Use `logger` to log output to Syslog

Open Sophist-UK opened this issue 1 year ago • 2 comments

  1. Use the logger command to log to syslog every time echo is used. (-d changes the default to off.)
  2. Perhaps have a -l switch that can be used to toggle the default.

(Note: Ideas inspired by https://github.com/lynix/hdd-spindown.sh/blob/master/hdd-spindown.sh .)

Sophist-UK avatar Sep 17 '23 21:09 Sophist-UK

Thanks for your suggestion!

Sounds like a useful addition. I'll integrate it within the next days and release an update version :)

ngandrass avatar Sep 21 '23 14:09 ngandrass

I integrated the syslog mode (-l) into the develop branch: https://github.com/ngandrass/truenas-spindown-timer/tree/develop

The README.md is updated accordingly. Please verify that this suites your needs :)

ngandrass avatar Sep 23 '23 13:09 ngandrass