From bb01064ae9a8e12862641364216262f24fb077d7 Mon Sep 17 00:00:00 2001 From: dbroqua Date: Fri, 22 Jan 2021 18:31:41 +0100 Subject: [PATCH] Added systemd service --- raspicar.service | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 raspicar.service diff --git a/raspicar.service b/raspicar.service new file mode 100644 index 0000000..698f1ec --- /dev/null +++ b/raspicar.service @@ -0,0 +1,16 @@ +[Unit] +Description=RaspiCar Service +After= + +[Service] +Type=simple +User=pi +Group=pi +UMask=007 +WorkingDirectory=/home/pi/raspicar/ +ExecStart=python3 /home/pi/raspicar/raspicar.py +Restart=on-failure +TimeoutStopSec=300 + +[Install] +WantedBy=multi-user.target