vi /etc/systemd/system/umv.service

[Unit]
Description=UMV application
After=multi-user.target
Requires=multi-user.target

[Service]
ExecStart=/home/root/runumv_start.sh &
ExecStop=/home/root/runumv_stop.sh &
Type=oneshot
RemainAfterExit=true

[Install]
WantedBy=multi-user.target
~
~

systemctl enable umv

systemctl disable umv

systemctl status umv

systemctl daemon-reload

systemd service 추가

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다