I'm trying to create a systemd-service for a vendor-provided shell-script, which exits after launching the actual service (a Java-program). I don't want to put the program itself into ExecStart
, because the script does a lot of things first (setting up environment variables, etc.) -- which lot also changes from version to version.
The only means officially supported by the vendor is through the shell script...
Before exiting, the script creates/updates the PID-file -- can I make systemd monitor the process specified in it?