websoft9/apps/roles/mingdao/files/mingdao.service
2023-03-02 10:20:12 +08:00

11 lines
362 B
Desktop File

[Unit]
Description=mingdao service
After=network.target init-apps.service
[Service]
Type=simple
# tail -f for living process, otherwise this service is exit
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
[Install]
WantedBy=multi-user.target