Hi Michael, (see below..)
Michael Biebl <bi...@debian.org> 于2018年11月12日周一 上午7:51写道: > > On Sun, 11 Nov 2018 18:19:56 +0000 Boyuan Yang <by...@debian.org> wrote: > > + Add /etc/default/anacron file as EnvironmentFile. > > As systemd maintainer, I have to say, that I don't particularly like > this change. EnvironmentFile is a bit of a kludge, the documented and > preferred mechanism is to use a drop-in config snippet. > You'll need that anyway, since the ConditionACPower can not be > overridden this way. > > I would prefer a simple note in /etc/default/anacron instead, which says > that this file is only read by the sysv init script and for systemd you > should use a drop-in config instead. The key is that I added ANACRON_ARGS to the environment file besides ConditionACPower so that users may add custom arguments. For example, -s for serialisation. In such circumstance the EnvironmentFile is needed anyway. I already added related notes in both /etc/default/anacron and systemd service file about sysvinit and drop-in config in anacron 2.3-25. -- Thank, Boyuan Yang