systemd java process starter

Java Oct 29, 2019
[Unit]
Description=process description
After=network.target

[Service]
#Configuration
Environment="APPDATA=/tmp"
Environment="JAVA_OPTS=-Djava.awt.headless=true"
WorkingDirectory=/opt/.../.../

# Lifecycle
Type=forking
ExecStart=/opt/.../.../.../startPrc.sh
SuccessExitStatus=143
Restart=always
PIDFile=/opt/.../.../main.Main.pid

# Security
User=user
Group=user
ReadWritePaths=/opt/.../
ReadWritePaths=/opt/.../...


[Install]
WantedBy=multi-user.target

Tags

Great! You've successfully subscribed.
Great! Next, complete checkout for full access.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.