mirror of
https://codeup.aliyun.com/64f7d6b8ce01efaafef1e678/coal/coal.git
synced 2026-01-25 07:46:40 +08:00
增加systemd文件
This commit is contained in:
11
systemd/coal-master.service
Normal file
11
systemd/coal-master.service
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=coal master api
|
||||||
|
After=syslog.target network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=root
|
||||||
|
WorkingDirectory=/opt/coal/master/api/
|
||||||
|
ExecStart=/usr/bin/java -Dspring.profiles.active=master -DPG_DATABASE=coal_master -DREDIS_DATABASE=0 org.springframework.boot.loader.JarLauncher
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
11
systemd/coal-prod.service
Normal file
11
systemd/coal-prod.service
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=coal prod api
|
||||||
|
After=syslog.target network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=root
|
||||||
|
WorkingDirectory=/opt/coal/prod/api/
|
||||||
|
ExecStart=/usr/bin/java -Dspring.profiles.active=prod -DPG_DATABASE=coal_prod -DREDIS_DATABASE=0 org.springframework.boot.loader.JarLauncher
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
11
systemd/coal-test.service
Normal file
11
systemd/coal-test.service
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=coal test api
|
||||||
|
After=syslog.target network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=root
|
||||||
|
WorkingDirectory=/opt/coal/test/api/
|
||||||
|
ExecStart=/usr/bin/java -Dspring.profiles.active=test -DPG_DATABASE=coal_test -DREDIS_DATABASE=1 org.springframework.boot.loader.JarLauncher
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
Reference in New Issue
Block a user