CornerBit / HikSink

Converts Hikvision camera events to MQTT
MIT License
70 stars 7 forks source link

Have Hik-Sink start on boot #13

Closed daveo2k closed 1 year ago

daveo2k commented 1 year ago

I'm running Hik-Sink standalone on a Raspberry Pi, is there anyway to have the app start on boot? I've got this working at the moment via bashrc but then if you ssh in to the Pi the app launches when the Pi is logged in to via SSH and i just hang the session so the app continues to run. Be good if it could be done via systemd or similar?

pentafive commented 1 year ago

@daveo2k, If you still have this issue try adding it to the /etc/rc.local file.

More info here: https://raspberrypi-guide.github.io/programming/run-script-on-boot

CornerBit commented 1 year ago

Ideally you would use systemd and turn HikSink into a service. There are a few tutorials around online about how to do this, e.g. https://medium.com/@benmorel/creating-a-linux-service-with-systemd-611b5c8b91d6