1. Create new file /etc/systemd/system/dragon-eye.service with content below
[Unit]
Description=Dragon Eye
After=nvargus-daemon.service
[Service]
ExecStart=/usr/local/bin/dragon-eye
Type=oneshot
[Install]
WantedBy=multi-user.target
2.Enable service on startup
sudo systemctl enable dragon-eye
3.Disable service
sudo systemctl disable dragon-eye
4.Run-time service control
sudo systemctl start dragon-eye
sudo systemctl stop dragon-eye
sudo systemctl status dragon-eye
5.Reference
沒有留言:
張貼留言