From 1faf2fbe0b2ef2e7605a63259d37ab1839aa21df Mon Sep 17 00:00:00 2001 From: Pierre-Alain TORET Date: Sat, 9 Jun 2018 12:41:39 +0200 Subject: [PATCH] commento-ce.service: add a linux systemd example file Signed-off-by: Pierre-Alain TORET --- etc/linux-systemd/commento-ce.service | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 etc/linux-systemd/commento-ce.service diff --git a/etc/linux-systemd/commento-ce.service b/etc/linux-systemd/commento-ce.service new file mode 100644 index 0000000..4539f03 --- /dev/null +++ b/etc/linux-systemd/commento-ce.service @@ -0,0 +1,14 @@ +[Unit] +Description=Commento-CE daemon service +After=network.target postgresql.service + +[Service] +Type=simple +ExecStart=/usr/bin/commento-ce +Environment=COMMENTO_ORIGIN=https://commento.example.com +Environment=COMMENTO_PORT=8080 +Environment=COMMENTO_POSTGRES=postgres://commento:commento@db:5432/commento?sslmode=disable +Environment=COMMENTO_STATIC=/usr/share/commento-ce + +[Install] +WantedBy=multi-user.target