From ace7352967ef395518ae18fafaf12b6da2378730 Mon Sep 17 00:00:00 2001 From: Fisch Date: Thu, 1 Jul 2021 22:23:06 +0200 Subject: [PATCH] add systemd service --- systemd/mqtt-pi-led-display.service | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 systemd/mqtt-pi-led-display.service diff --git a/systemd/mqtt-pi-led-display.service b/systemd/mqtt-pi-led-display.service new file mode 100644 index 0000000..37c1ab2 --- /dev/null +++ b/systemd/mqtt-pi-led-display.service @@ -0,0 +1,13 @@ +[Unit] +Description=RPI MQTT Controller +Wants=network.target +After=network.target + +[Service] +ExecStart=/usr/bin/python3 ~/mqtt_pi_led-display/src/main.py 192.168.1.6 snappi2 +Restart=on-failure +User=pi +Group=users + +[Install] +WantedBy=multi-user.target