Use the systemd-analyze verify
command to check if a SystemD service file is valid and has no syntax errors.
If the service file is valid, the command will return nothing. If there are any errors, they will be displayed in the output.
Read more about system-analyze โ๏ธ and systemd