The original post: /r/debian by /u/aWesterner014 on 2024-12-24 17:15:47.

I have a custom developed jar and a custom shell script that I have written to wrap around the jar.

If I run the script as the “application account” at the command line, it works fine.

That said, I am having issues “plugging” the shell script into systemd.

If I try to reference the script in a systemd service file and then try to start it with the service hooks, the script fires, but it appears the jar file is either starting and getting killed or never starting. I have the java command to run the jar file creating a log file for redirecting standard out. The log file is getting created but the java file is not logging anything to the log file.

Any suggestions on what to look at?