[systemd-devel] Restart instantiated services after suspend

Marcos Felipe Rasia de Mello marcosfrm at gmail.com
Tue Nov 19 09:00:08 PST 2013


2013/11/19 David Timothy Strauss <david at davidstrauss.net>:
> On Wed, Nov 20, 2013 at 2:18 AM, Marcos Felipe Rasia de Mello
> <marcosfrm at gmail.com> wrote:
>> ConditionFileIsExecutable=/usr/sbin/hdparm
>
> It seems sketchy to me to put the executable in ExecStart into
> ConditionFileIsExecutable. Is it supposed to fail silently when hdparm
> is missing?

If hdparm is not preset, unit will enter a failed state. ExecStart
command prefixed with "-" will prevent this, but still I prefer the
service to not run at all in this case.

In my first attempts, I forgot to install hdparm. ;)

--
Marcos


More information about the systemd-devel mailing list