feat: backend native executor implement
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
[Unit]
|
||||
Description=YMS Backend (%i)
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
Group=root
|
||||
EnvironmentFile=-/home/yms/bin/env/yms.env
|
||||
WorkingDirectory=/home/yms/lib
|
||||
ExecStart=/usr/bin/java -Xms1024m -Xmx10240m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/home/yms/dump -XX:ErrorFile=/home/yms/log/hs_err_pid%%p.log -XX:+ExitOnOutOfMemoryError -jar /home/yms/lib/glory-soft-yms-%i.jar --server.port=%i
|
||||
Restart=on-failure
|
||||
RestartSec=60
|
||||
TimeoutStopSec=150min
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
SyslogIdentifier=yms-backend-%i
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,23 @@
|
||||
[Unit]
|
||||
Description=YMS Update Daemon
|
||||
After=network.target nginx.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
Group=root
|
||||
ExecStart=/usr/bin/yms-daemon serve
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
RuntimeDirectory=yms-daemon
|
||||
RuntimeDirectoryMode=0755
|
||||
StateDirectory=yms-daemon
|
||||
StateDirectoryMode=0750
|
||||
LogsDirectory=yms-daemon
|
||||
LogsDirectoryMode=0750
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
SyslogIdentifier=yms-daemon
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user