Update mingdao.service

This commit is contained in:
Darren 2023-03-02 09:52:20 +08:00 committed by GitHub
parent 0466b283a9
commit 71c1b28d79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,9 +3,7 @@ Description=mingdao service
After=network.target
[Service]
Type=simple
ExecStart=/bin/bash /data/apps/mingdao/installer/service.sh start
ExecStart=/bin/bash -c "cd /data/apps/mingdao/installer && ./service.sh start && tail -f /dev/null"
ExecStop=-/bin/bash /data/apps/mingdao/installer/service.sh stopall
ExecStopPost=-/usr/bin/pkill mingdaoyun
PIDFile=/data/apps/mingdao/installer/service.pid
[Install]
WantedBy=multi-user.target