this post was submitted on 24 Dec 2024
1 points (100.0% liked)

Debian — The Universal Operating System

6 readers
1 users here now

Subreddit to discuss all the Debian things, the Universal Operating System.

founded 1 year ago
MODERATORS
 
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?

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here