Client: fix service file and restart order

This commit is contained in:
Arthur Golubtsov
2019-10-17 19:29:52 +01:00
parent 37a7d32e87
commit 7fb27bcfc0
2 changed files with 5 additions and 4 deletions

View File

@@ -228,11 +228,10 @@ def _response_id(*args, **kwargs):
configure_motd(hostname)
execute_command("hostname {}".format(hostname))
restart_service("dhcpcd")
time.sleep(0.5)
restart_service("avahi-daemon")
time.sleep(0.5)
restart_service("clever")
restart_service("smbd")
restart_service("roscore")
restart_service("clever")
restart_service("clever-show")

View File

@@ -1,6 +1,8 @@
[Unit]
Description=Clever Show Client Service
After=clever.service
Requires=clever.service
Requires=network.target
After=network.target
[Service]
WorkingDirectory=/home/pi/clever-show/Drone