Hi Evgeni,

your fix works like a charm. I checked by <systemctl status thinkfan> and it 
showed parameters are used which I only put in /etc/default/thinkfan.

Another minor thing: systemctl prints wrong version (0.9.1) "thinkfan 0.9.1 
starting..." (but 0.9.3-1 is installed)


Yours lopiuh
 
 

Gesendet: Samstag, 07. Januar 2017 um 13:24 Uhr
Von: "Evgeni Golov" <evg...@debian.org>
An: lopiuh <lop...@gmx.net>, 850...@bugs.debian.org
Betreff: Re: Bug#850514: thinkfan: daemon args (/etc/default/thinkfan) not in 
use with systemd (and there is no alternative place)
Ohai,

On Sat, Jan 07, 2017 at 01:02:42PM +0100, lopiuh wrote:
> the daemon args (e.g. -b (bias) which used to be read of 
> /etc/default/thinkfan are not configurable anymore.
> As a quick hack I edited /lib/systemd/system/thinkfan.service in order to 
> pass the -b option
> in my case:
>
> ExecStart=/usr/sbin/thinkfan -b 0
>
> User would expect (imho) to be able to configure daemon args.

IMHO better would be to do the following:
EnvironmentFile=-/etc/default/thinkfan
ExecStart=/usr/sbin/thinkfan $DAEMON_ARGS

Can you test that please?

Reply via email to