From 2350d9282b0601504d2fe59e1d7123de39056669 Mon Sep 17 00:00:00 2001 From: boyska Date: Sun, 27 Dec 2015 01:04:58 +0100 Subject: [PATCH] systemd integration --- debian/changelog | 6 ++++++ debian/control | 3 ++- debian/python-libreant.service | 11 +++++++++++ debian/rules | 2 +- 4 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 debian/python-libreant.service diff --git a/debian/changelog b/debian/changelog index 96c3b08..1312116 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +libreant (0.3-3) testing; urgency=medium + + * systemd service + + -- boyska Sun, 27 Dec 2015 00:48:28 +0100 + libreant (0.3-2) testing; urgency=medium * default config (unused) diff --git a/debian/control b/debian/control index bd627ad..6b17ad3 100644 --- a/debian/control +++ b/debian/control @@ -8,7 +8,8 @@ Build-Depends: debhelper (>= 9), dh-python, python-all (>=2.6), python-setuptool python-click, python-elasticsearch, python-flask, python-flask-babel, python-flask-script, python-opensearch, python-peewee, - python-flask-bootstrap + python-flask-bootstrap, + dh-systemd Standards-Version: 3.9.4 X-Python-Version: >= 2.7 diff --git a/debian/python-libreant.service b/debian/python-libreant.service new file mode 100644 index 0000000..ca2206f --- /dev/null +++ b/debian/python-libreant.service @@ -0,0 +1,11 @@ +[Unit] +Description=book sharing solution +Documentation=https://libreant.readthedocs.org/en/v0.3/ + +[Service] +User=nobody +Environment=LIBREANT_SETTINGS=/etc/libreant/libreant.conf +ExecStart=/usr/bin/libreant + +[Install] +WantedBy=multi-user.target diff --git a/debian/rules b/debian/rules index e08621b..44f59aa 100755 --- a/debian/rules +++ b/debian/rules @@ -3,4 +3,4 @@ export PYBUILD_NAME = libreant %: - dh $@ --with python2 + dh $@ --with python2 --with systemd