init
This commit is contained in:
15
etc/gostock.service
Normal file
15
etc/gostock.service
Normal file
@@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=gostock Service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=always
|
||||
RestartSec=2s
|
||||
Environment="BSM_RuntimeMode=prod" "BSM_Prefix=/data/app/"
|
||||
ExecStart=/data/app/gostock
|
||||
WorkingDirectory=/data/app/
|
||||
StandardOutput=file:/data/app/logs/gostock.log
|
||||
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user