Skip to content

Commit

Permalink
Silence "Referenced but unset environment variable" warning
Browse files Browse the repository at this point in the history
Systemd v254+ warns about unset environment variables,
so we need to provide an explicit default value.

Based on analogdevicesinc/libiio#1144
  • Loading branch information
andrew-sayers committed Jan 23, 2025
1 parent c4a26cb commit c7dbadb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions smartmontools/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
$Id$

2025-01-23 Andrew Sayers <andrew-github.com@pileofstuff.org>

smartd.service: silence "Referenced but unset environment variable" warning

2025-01-15 Oleksii Samorukov <samm@os2.kiev.ua>

sntjmicron: workaround to avoid USB reset on selftest log query (GH: #256).
Expand Down
1 change: 1 addition & 0 deletions smartmontools/smartd.service.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ ConditionVirtualization=no

[Service]
Type=notify
Environment=smartd_opts=''
EnvironmentFile=-/usr/local/etc/sysconfig/smartmontools
ExecStart=/usr/local/sbin/smartd -n $smartd_opts
ExecReload=/bin/kill -HUP $MAINPID
Expand Down

0 comments on commit c7dbadb

Please sign in to comment.