This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=kontor-gin
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=tpeetz
|
||||
Group=tpeetz
|
||||
WorkingDirectory=/home/tpeetz/projects/kontor/kontor-gin
|
||||
ExecStart=/home/tpeetz/.local/bin/kontor
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
[Unit]
|
||||
Description=kontor-spring
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=tpeetz
|
||||
Group=tpeetz
|
||||
Environment="JAVA_HOME=/usr/lib/jvm/java-25-openjdk-amd64"
|
||||
WorkingDirectory=/home/tpeetz/prod
|
||||
ExecStart=java -Dvaadin.productionMode=true -jar /home/tpeetz/prod/kontor-spring-0.4.0-SNAPSHOT.jar
|
||||
ExecStop=/bin/kill -15 $MAINPID
|
||||
SuccessExitStatus=143
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Reference in New Issue
Block a user