Skip to content

Commit

Permalink
feat: allow changing log level from configuration file
Browse files Browse the repository at this point in the history
  • Loading branch information
desbma committed Jan 2, 2025
1 parent ccb44b5 commit a847e9d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions systemd/hddfancontrol.conf
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#
# HDD fan control daemon startup arguments, for use as a systemd service
# This file should be located at /etc/conf.d/hddfancontrol
#
# Run 'hddfancontrol daemon -h' to see help about all available arguments.
# HDD fan control configuration, used when started from a systemd service.
# This file should be located at /etc/conf.d/hddfancontrol.
#

# Daemon startup arguments, run 'hddfancontrol daemon -h' to see help about all available arguments.
HDDFANCONTROL_DAEMON_ARGS=""

# Log level, from most to least verbose: trace, debug, info, warn, error.
HDDFANCONTROL_LOG_LEVEL="info"
2 changes: 1 addition & 1 deletion systemd/hddfancontrol.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ After=hddtemp.service

[Service]
EnvironmentFile=/etc/conf.d/hddfancontrol
ExecStart=/usr/bin/hddfancontrol daemon $HDDFANCONTROL_DAEMON_ARGS
ExecStart=/usr/bin/hddfancontrol -v $HDDFANCONTROL_LOG_LEVEL daemon $HDDFANCONTROL_DAEMON_ARGS

# Scheduler priority
CPUSchedulingPolicy=rr
Expand Down

0 comments on commit a847e9d

Please sign in to comment.