设计
This commit is contained in:
16
templates/server_sample/etc/sample.service
Normal file
16
templates/server_sample/etc/sample.service
Normal file
@@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=Sample Service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=always
|
||||
RestartSec=5s
|
||||
EnvironmentFile=/data/app/etc/sample.env
|
||||
ExecStart=/data/app/sample
|
||||
WorkingDirectory=/data/app/
|
||||
StandardOutput=file:/data/app/logs/sample.log
|
||||
StandardError=file:/data/app/logs/sample.error.log
|
||||
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user