mirror of
https://github.com/OpenVoiceOS/OpenVoiceOS
synced 2025-02-01 11:16:52 +01:00
181bb4c98d
- Make it more robust - In preparation for watchdog support - Do not start Mycroft if network is not up - Wait for internet connectivity
16 lines
343 B
Desktop File
16 lines
343 B
Desktop File
[Unit]
|
|
Description=Mycroft A.I. Software stack.
|
|
After=pulseaudio.service
|
|
After=network-online.target
|
|
|
|
[Service]
|
|
User=mycroft
|
|
WorkingDirectory=/home/mycroft
|
|
Type=oneshot
|
|
ExecStartPre=/bin/bash -c 'while ! ping -q -c 1 -W 1 1.1.1.1 >/dev/null 2>&1; do sleep 1; done'
|
|
ExecStart=/bin/true
|
|
RemainAfterExit=yes
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|