[systemd-devel] Syntax check for a new service?

Dave Howorth systemd at howorth.org.uk
Sat Feb 26 15:38:45 UTC 2022


On Sat, 26 Feb 2022 09:17:38 -0600
Tom Browder <tom.browder at gmail.com> wrote:
> Is there any way to get a plain syntax check of a potential new
> service file?

systemd-analyze verify FILE...

https://www.freedesktop.org/software/systemd/man/systemd-analyze.html

> I currently check it by installing, reloading, and enabling, and then
> getting a status check where I see the service isn't running and I see
> multiple messages:
> 
>      [in black text]*:N: Missing '='
>      [in red text]*:N: Failed to parse sec value, ignoring: always
> 
> I can include my current file if you'd like.
> 
> I'm running Debian Buster (10) fully updated.
> 
> Thanks.
> 
> -Tom


More information about the systemd-devel mailing list