Initial commit of Timesheets install role
Change-Id: I4a0b1f7aa05fc50bc3d88be001413a00be65f231
diff --git a/templates/timesheetsdb.service.j2 b/templates/timesheetsdb.service.j2
new file mode 100644
index 0000000..3715246
--- /dev/null
+++ b/templates/timesheetsdb.service.j2
@@ -0,0 +1,26 @@
+{#
+SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org>
+SPDX-License-Identifier: Apache-2.0
+#}
+[Unit]
+Description=Timesheets DB Service
+Documentation=https://github.com/opennetworkinglab/timesheetsdb
+After=network-online.target
+Wants=network-online.target
+
+
+[Service]
+Type=simple
+
+User={{ timesheets_username }}
+Group={{ timesheets_groupname }}
+WorkingDirectory={{ timesheets_dir }}/db
+
+ExecStart=npm run start:prod
+
+Restart=on-failure
+RestartSec=30
+PrivateTmp=true
+
+[Install]
+WantedBy=multi-user.target