blob: 8152733a69f5b2ae04022b7f79d6c89697b72f69 [file] [log] [blame]
{#
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