X-Git-Url: https://git.realraum.at/?p=201903hackathon.git;a=blobdiff_plain;f=bt_connect_bobbycar.service;fp=bt_connect_bobbycar.service;h=557d3bd0a897594857eb81348fb75bb2c0fc7017;hp=0000000000000000000000000000000000000000;hb=faacfda6875f406ba37b0f87e3f518ed2389fc4e;hpb=19903366be76221da8739bd9ce8ff285c5a8a08b diff --git a/bt_connect_bobbycar.service b/bt_connect_bobbycar.service new file mode 100644 index 0000000..557d3bd --- /dev/null +++ b/bt_connect_bobbycar.service @@ -0,0 +1,18 @@ +[Unit] +Description=start bt_connect_bobbycar.sh +Requires=bluetooth.target +After=bluetooth.target + +[Service] +Type=simple +Restart=always +RestartSec=5 +User=pi +WorkingDirectory=/home/pi/2019-03-letsCluster-Hackathon/201903hackathon +ExecStart=/home/pi/2019-03-letsCluster-Hackathon/201903hackathon/bt_connect_bobbycar.sh +ExecStop=/home/pi/2019-03-letsCluster-Hackathon/201903hackathon/bt_disconnect_bobbycar.sh +SyslogIdentifier=%i + +[Install] +WantedBy=multi-user.target +