first
This commit is contained in:
17
docs/deploy/anxinyan-api.service.example
Normal file
17
docs/deploy/anxinyan-api.service.example
Normal file
@@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description=Anxinyan webman API service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
WorkingDirectory=/www/wwwroot/anxinyan-api
|
||||
ExecStart=/usr/bin/php /www/wwwroot/anxinyan-api/start.php start -d
|
||||
ExecReload=/usr/bin/php /www/wwwroot/anxinyan-api/start.php reload -d
|
||||
ExecStop=/usr/bin/php /www/wwwroot/anxinyan-api/start.php stop
|
||||
Restart=always
|
||||
RestartSec=3
|
||||
User=www
|
||||
Group=www
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user