blob: 0a35716bf6818477fe0316c3a427538c66ef3ca8 [file] [log] [blame]
Zack Williams70996442020-10-01 22:09:49 -07001{#
2SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org>
3SPDX-License-Identifier: Apache-2.0
4#}
Zack Williams952bc002020-10-04 09:45:59 -07005# /etc/systemd/system/timesheetsdb
6# {{ ansible_managed }}
Zack Williams70996442020-10-01 22:09:49 -07007[Unit]
8Description=Timesheets DB Service
9Documentation=https://github.com/opennetworkinglab/timesheetsdb
10After=network-online.target
11Wants=network-online.target
12
Zack Williams70996442020-10-01 22:09:49 -070013[Service]
14Type=simple
15
16User={{ timesheets_username }}
17Group={{ timesheets_groupname }}
Zack Williams70996442020-10-01 22:09:49 -070018
Zack Williams952bc002020-10-04 09:45:59 -070019EnvironmentFile=/etc/default/timesheetsdb
20WorkingDirectory={{ timesheets_dir }}/db
21ExecStart=/usr/bin/npm run start:prod
Zack Williams70996442020-10-01 22:09:49 -070022
23Restart=on-failure
24RestartSec=30
25PrivateTmp=true
26
27[Install]
28WantedBy=multi-user.target