| {# |
| SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org> |
| SPDX-License-Identifier: Apache-2.0 |
| #} |
| [Unit] |
| Description=enodebd Service |
| Documentation=https://gerrit.opencord.org/plugins/gitiles/enodebd |
| After=network-online.target |
| Wants=network-online.target |
| |
| [Service] |
| Type=simple |
| |
| User={{ enodebd_username }} |
| Group={{ enodebd_groupname }} |
| PIDFile=/var/tmp/enodebd.pid |
| WorkingDirectory={{ enodebd_working_dir }} |
| |
| ExecStart={{ enodebd_working_dir }}/venv/bin/python main.py |
| |
| Restart=on-failure |
| RestartSec=30 |
| PrivateTmp=true |
| |
| [Install] |
| WantedBy=multi-user.target |