On Wed, 10 Mar 2021 10:01:57 +0200 Mihai Basa <bmi...@gmail.com> wrote:
> Package: thinkfan
> Version: 1.2.1-3
> Severity: normal
> Tags: patch
> X-Debbugs-Cc: bmihai+deb...@gmail.com
> 
> Dear Maintainer,
> 
> Starting thinkfan-sleep.service always ends with an error code,
> "(code=exited,
> status=203/EXEC)", because of wrong path in the race-condition-mitigation
> portion of the script. In /lib/systemd/system/thinkfan-sleep.service, line
> 9,
> 
>     ExecStart=/usr/bin/sleep 1
> 
> should be changed to
> 
>     ExecStart=/bin/sleep 1
> 
> which solves it.
> 

You don't need to specify a full path as systemd will search the paths
specified in
https://www.freedesktop.org/software/systemd/man/systemd.exec.html#%24PATH


My recommendation usually is, to use a full path for the binaries shipped by
your package (say ExecStart=/usr/sbin/thinkfan) but if you call binaries
from other packages, I would not specify a path, so it doesn't matter, where
that binary is located and your service doesn't break should the other
package ever decide to move the binary to a different path.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to