pizero_tracker/tracker/code/system_d/tracker.service

22 wiersze
412 B
INI

# cp ./tracker.service /etc/systemd/system/
# systemctl enable tracker.service
# systemctl start tracker.service
# journalctl -u tracker
[Unit]
Description=piZero tracker
After=network.target
StartLimitIntervalSec=0
[Service]
Type=simple
Restart=always
RestartSec=1
User=root
ExecStart=/boot/tracker --config /boot/tracker.cfg
WorkingDirectory=/boot
[Install]
WantedBy=multi-user.target