source: other-projects/bib-stinky/trunk/nodejs-server/service.d/bibstinky.service.in@ 36315

Last change on this file since 36315 was 36315, checked in by davidb, 21 months ago

Utility scripts for starting and stopping the Express-based web server that will ultimately provideBib-Stinky functionality; imprinted of files developed for the Hey You Interact with Me project

File size: 810 bytes
Line 
1# For more details on writing a service, see:
2# https://linuxconfig.org/how-to-create-systemd-service-unit-in-linux
3#
4[Unit]
5Description=Bib-Stinky Web Server
6After=network.target
7
8[Service]
9Type=forking
10User=@BIBSTINKY_SERVICE_USERNAME@
11ExecStart=/usr/bin/env bash @BIBSTINKY_HOME@/service.d/bibstinky-start.sh
12
13#
14# If using 'Restart' directive, read the following to avoid some common pitfalls
15# https://medium.com/@benmorel/creating-a-linux-service-with-systemd-611b5c8b91d6
16# Restart=on-failure
17# Other restart options: always, on-abort, etc
18
19# The install section is needed to use `systemctl enable` to start on boot
20# For a user service that you want to enable and start automatically, use `default.target`
21# For system level services, use `multi-user.target`
22#
23[Install]
24WantedBy=multi-user.target
Note: See TracBrowser for help on using the repository browser.