Update and rename template.conf to mingdao.service

This commit is contained in:
qiaofeng1227 2022-11-22 09:22:23 +08:00 committed by GitHub
parent 54253aeafe
commit 8b6bf10170
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

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