[Unit] Description=mingdao service After=network.target [Service] Type=simple 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