websoft9/apps/roles/mingdao/files/mingdao.service

12 lines
343 B
SYSTEMD
Raw Normal View History

2023-03-01 16:32:43 +08:00
[Unit]
Description=mingdao service
After=network.target
[Service]
Type=simple
2023-03-01 16:37:48 +08:00
ExecStart=/bin/bash /usr/local/MDPrivateDeployment/service.sh start
ExecStop=-/bin/bash /usr/local/MDPrivateDeployment/service.sh stopall
2023-03-01 16:32:43 +08:00
ExecStopPost=-/usr/bin/pkill mingdaoyun
2023-03-01 16:37:48 +08:00
PIDFile=/data/apps/mingdao/installer/service.pid
2023-03-01 16:32:43 +08:00
[Install]
WantedBy=multi-user.target