systemd integration

This commit is contained in:
boyska 2015-12-27 01:04:58 +01:00
parent 4d04b50c1f
commit 2350d9282b
No known key found for this signature in database
GPG key ID: 7395DCAE58289CA9
4 changed files with 20 additions and 2 deletions

6
debian/changelog vendored
View file

@ -1,3 +1,9 @@
libreant (0.3-3) testing; urgency=medium
* systemd service
-- boyska <piuttosto@logorroici.org> Sun, 27 Dec 2015 00:48:28 +0100
libreant (0.3-2) testing; urgency=medium
* default config (unused)

3
debian/control vendored
View file

@ -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

11
debian/python-libreant.service vendored Normal file
View file

@ -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

2
debian/rules vendored
View file

@ -3,4 +3,4 @@
export PYBUILD_NAME = libreant
%:
dh $@ --with python2
dh $@ --with python2 --with systemd