260703_01_FST: First Commit
This commit is contained in:
16
templates/base/deploy/systemd.service.example
Normal file
16
templates/base/deploy/systemd.service.example
Normal file
@@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=__PROJECT_NAME__
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=jenkins
|
||||
WorkingDirectory=__APP_ROOT__/current
|
||||
Environment=SPRING_PROFILES_ACTIVE=prod
|
||||
ExecStart=/usr/bin/java -jar __APP_ROOT__/current/app.jar
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
SuccessExitStatus=143
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user