2019年7月12日 星期五

Jetson Nano run program on startup

I want to run my own program automatically on startup. For example, the name of my program is dragon-eye

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


沒有留言:

張貼留言