Zack Williams | 7099644 | 2020-10-01 22:09:49 -0700 | [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=Timesheets DB Service |
| 7 | Documentation=https://github.com/opennetworkinglab/timesheetsdb |
| 8 | After=network-online.target |
| 9 | Wants=network-online.target |
| 10 | |
| 11 | |
| 12 | [Service] |
| 13 | Type=simple |
| 14 | |
| 15 | User={{ timesheets_username }} |
| 16 | Group={{ timesheets_groupname }} |
| 17 | WorkingDirectory={{ timesheets_dir }}/db |
| 18 | |
| 19 | ExecStart=npm run start:prod |
| 20 | |
| 21 | Restart=on-failure |
| 22 | RestartSec=30 |
| 23 | PrivateTmp=true |
| 24 | |
| 25 | [Install] |
| 26 | WantedBy=multi-user.target |