From ab3a9ad7b80b502c5b152160d81340a9dddcd068 Mon Sep 17 00:00:00 2001 From: Daniel Pollithy Date: Thu, 31 Aug 2017 22:54:38 +0200 Subject: [PATCH] d3 update --- drone.service | 4 +++- drone_service_installer.sh | 1 + station.service | 4 +++- station_service_installer.sh | 1 + 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/drone.service b/drone.service index 956d82d..67329a6 100644 --- a/drone.service +++ b/drone.service @@ -1,8 +1,10 @@ [Unit] Description=Drone Client Service +After=multi-user.target [Service] -ExecStart=/bin/bash/ -c "/usr/bin/python /home/pi/bluetooth_drone/drone.py" +Type=idle +ExecStart=/usr/bin/python /home/pi/bluetooth_drone/drone.py Restart=on-failure [Install] diff --git a/drone_service_installer.sh b/drone_service_installer.sh index 2674057..b0812b7 100644 --- a/drone_service_installer.sh +++ b/drone_service_installer.sh @@ -1,2 +1,3 @@ cp drone.service /etc/systemd/system/drone.service +sudo chmod 644 /etc/systemd/system/drone.service systemctl enable drone.service \ No newline at end of file diff --git a/station.service b/station.service index 3392ace..b75a26a 100644 --- a/station.service +++ b/station.service @@ -1,8 +1,10 @@ [Unit] Description=Station Client Service +After=multi-user.target [Service] -ExecStart=/bin/bash/ -c "/usr/bin/python /home/linaro/bluetooth_drone/server.py" +Type=idle +ExecStart=/usr/bin/python /home/linaro/bluetooth_drone/server.py Restart=on-failure [Install] diff --git a/station_service_installer.sh b/station_service_installer.sh index 0eecf38..9ed29c2 100644 --- a/station_service_installer.sh +++ b/station_service_installer.sh @@ -1,2 +1,3 @@ cp station.service /etc/systemd/system/station.service +sudo chmod 644 /etc/systemd/system/station.service systemctl enable station \ No newline at end of file