Improve ADB based monitoring agent
- Ensure "Mobile Data" option is enabled before starting the test
- Enable logging
- Run as systemd service instead of daemon
Change-Id: Id446071961692afe5bda41e827068ffe11dd2350
diff --git a/edge-monitoring/agent_adb/edge-mon-agent.service b/edge-monitoring/agent_adb/edge-mon-agent.service
new file mode 100644
index 0000000..3ee8057
--- /dev/null
+++ b/edge-monitoring/agent_adb/edge-mon-agent.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Aether Edge Monitoring Agent
+After=multi-user.target
+
+[Service]
+Type=simple
+Environment=CONFIG_FILE=/etc/aether-edge-mon/config.json
+ExecStart=/etc/aether-edge-mon/edge_monitoring_agent_adb.py
+ExecStartPre=/bin/sleep 60
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target