| {# |
| SPDX-FileCopyrightText: © 2021 Open Networking Foundation <support@opennetworking.org> |
| SPDX-License-Identifier: Apache-2.0 |
| #} |
| # /etc/systemd/system/edge-mon-agent.service |
| # {{ ansible_managed }} |
| [Unit] |
| Description=Aether Edge Monitoring Agent |
| After=network-online.target |
| |
| [Service] |
| Type=simple |
| |
| User={{ edgemonagent_username }} |
| Group={{ edgemonagent_groupname }} |
| |
| EnvironmentFile=/etc/default/edge-mon-agent |
| WorkingDirectory={{ edgemonagent_dir }} |
| |
| ExecStart=/usr/bin/python3 edge_monitoring_agent_modem.py |
| ExecStartPre=/bin/sleep 5 |
| |
| Restart=on-failure |
| RestartSec=30 |
| PrivateTmp=true |
| |
| [Install] |
| WantedBy=multi-user.target |