From b1fb0ae93979bf58f6a0565cc4a2dccab0cef25f Mon Sep 17 00:00:00 2001 From: frju365 Date: Thu, 2 Feb 2017 19:12:26 +0100 Subject: [PATCH] Create lstu.service --- conf/lstu.service | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 conf/lstu.service diff --git a/conf/lstu.service b/conf/lstu.service new file mode 100644 index 0000000..c499b49 --- /dev/null +++ b/conf/lstu.service @@ -0,0 +1,18 @@ +[Unit] +Description=URL Shortener +Documentation=https://git.framasoft.org/luc/lstu +Requires=network.target +After=network.target + +[Service] +Type=forking +User=www-data +RemainAfterExit=yes +WorkingDirectory=/var/www/lstu +PIDFile=/var/www/lstu/script/hypnotoad.pid +ExecStart=/usr/bin/carton exec hypnotoad script/lstu >> /var/log/lutim/production.log 2>&1 +ExecStop=/usr/bin/carton exec hypnotoad -s script/lstu >> /var/log/lutim/production.log 2>&1 +ExecReload=/usr/bin/carton exec hypnotoad script/lstu >> /var/log/lutim/production.log 2>&1 + +[Install] +WantedBy=multi-user.target