Wei-Yu Chen | 434dc4d | 2022-01-03 21:27:31 +0800 | [diff] [blame] | 1 | {# |
| 2 | SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org> |
| 3 | SPDX-License-Identifier: Apache-2.0 |
| 4 | #} |
| 5 | [Unit] |
| 6 | Description=enodebd Service |
| 7 | Documentation=https://gerrit.opencord.org/plugins/gitiles/enodebd |
| 8 | After=network-online.target |
| 9 | Wants=network-online.target |
| 10 | |
| 11 | [Service] |
| 12 | Type=simple |
| 13 | |
| 14 | User={{ enodebd_username }} |
| 15 | Group={{ enodebd_groupname }} |
| 16 | PIDFile=/var/tmp/enodebd.pid |
| 17 | WorkingDirectory={{ enodebd_working_dir }} |
| 18 | |
| 19 | ExecStart={{ enodebd_working_dir }}/venv/bin/python main.py |
| 20 | |
| 21 | Restart=on-failure |
| 22 | RestartSec=30 |
| 23 | PrivateTmp=true |
| 24 | |
| 25 | [Install] |
| 26 | WantedBy=multi-user.target |