summaryrefslogtreecommitdiff
path: root/linux/deb/02-fs-spring-boot-kamal/package/etc/systemd/system
diff options
context:
space:
mode:
authorKamal Wickramanayake <kamal@inbox.lk>2026-05-23 16:07:26 +0530
committerKamal Wickramanayake <kamal@inbox.lk>2026-05-23 16:07:26 +0530
commit161707cc2eab1d76a15684ef105bf1e2ecca154d (patch)
tree8db86611eaaeda22977d8ac71af0843ffc8a4aa5 /linux/deb/02-fs-spring-boot-kamal/package/etc/systemd/system
parented1837534a0a9a1ab8f8291cff73be031a5d493b (diff)
Added a Spring Boot app packaged deb file creation sample project to linux/deb directory
Diffstat (limited to 'linux/deb/02-fs-spring-boot-kamal/package/etc/systemd/system')
-rw-r--r--linux/deb/02-fs-spring-boot-kamal/package/etc/systemd/system/fs-spring-boot-kamal.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/linux/deb/02-fs-spring-boot-kamal/package/etc/systemd/system/fs-spring-boot-kamal.service b/linux/deb/02-fs-spring-boot-kamal/package/etc/systemd/system/fs-spring-boot-kamal.service
new file mode 100644
index 0000000..58a592c
--- /dev/null
+++ b/linux/deb/02-fs-spring-boot-kamal/package/etc/systemd/system/fs-spring-boot-kamal.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=fs-spring-boot-kamal
+
+[Service]
+User=fs-spring-boot-kamal
+EnvironmentFile=/etc/fs-spring-boot-kamal/environment.env
+ExecStart=/usr/bin/java -Dspring.config.import=optional:file:/etc/fs-spring-boot-kamal/application.yaml -jar /opt/fs-spring-boot-kamal/app/fs-spring-boot-kamal.jar
+Restart=always
+RestartSec=30
+
+[Install]
+WantedBy=multi-user.target