diff --git a/apps/roles/mingdao/files/mingdao.service b/apps/roles/mingdao/files/mingdao.service new file mode 100644 index 00000000..5a5936bd --- /dev/null +++ b/apps/roles/mingdao/files/mingdao.service @@ -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