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

11 lines
362 B
SYSTEMD
Raw Normal View History

2023-03-01 16:32:43 +08:00
[Unit]
Description=mingdao service
2023-03-02 10:20:12 +08:00
After=network.target init-apps.service
2023-03-01 16:32:43 +08:00
[Service]
Type=simple
2023-03-02 10:20:12 +08:00
# tail -f for living process, otherwise this service is exit
2023-03-02 09:52:20 +08:00
ExecStart=/bin/bash -c "cd /data/apps/mingdao/installer && ./service.sh start && tail -f /dev/null"
2023-03-01 16:38:46 +08:00
ExecStop=-/bin/bash /data/apps/mingdao/installer/service.sh stopall
2023-03-01 16:32:43 +08:00
[Install]
WantedBy=multi-user.target