Author: Pedro Lucas Porcellis <porcellis@eletrotupi.com>
contrib: add a systemd sample service unit
contrib/hidrocor.service | 17 +++++++++++++++++
diff --git a/contrib/hidrocor.service b/contrib/hidrocor.service new file mode 100644 index 0000000000000000000000000000000000000000..4f0d081473e37e7ce520fc5412c34543d42ba1bc --- /dev/null +++ b/contrib/hidrocor.service @@ -0,0 +1,17 @@ +[Unit] +Name=hidrocor +Description="A simple, tiny markdown wiki service" +After=network.target + +[Service] +Type=simple + +EnvironmentFile=/etc/default/hidrocor +ExecStart=/usr/local/bin/hidrocor --wiki $WIKI_PATH +PIDFile=/run/hidrocor.pid + +RestartSec=1 +Restart=on-failure + +[Install] +WantedBy=multi-user.target