vi /etc/systemd/system/svm.service

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

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

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

systemctl enable svm

systemctl disable svm

systemctl status svm

systemctl daemon-reload

systemd service 추가

답글 남기기

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