Create mingdao.service

This commit is contained in:
Darren 2023-03-01 16:32:43 +08:00 committed by GitHub
parent 7a11be86ee
commit 9240a8d930
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,11 @@
[Unit]
Description=mingdao service
After=network.target
[Service]
Type=simple
ExecStart=/bin/bash /data/wwwroot/mingdao/installer/service.sh start
ExecStop=-/bin/bash /data/wwwroot/mingdao/installer/service.sh stop
ExecStopPost=-/usr/bin/pkill mingdaoyun
PIDFile=/data/wwwroot/mingdao/installer/service.pid
[Install]
WantedBy=multi-user.target