Skip to content
Snippets Groups Projects
Verified Commit aeae2052 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Add systemd service file to debian package

parent 466a3b6a
No related branches found
No related tags found
No related merge requests found
Pipeline #20753 passed
......@@ -20,7 +20,7 @@ build-deb:
stage: build
before_script:
- *before-script
- apt update && apt install -y build-essential debhelper devscripts equivs dh-virtualenv libffi-dev
- apt update && apt install -y build-essential debhelper devscripts equivs dh-virtualenv libffi-dev dh-systemd
script:
- ./build-deb.sh
- mkdir build
......
......@@ -2,7 +2,7 @@ Source: documento-printserver
Section: python
Priority: extra
Maintainer: Jonathan Weth <dev@jonathanweth.de>
Build-Depends: debhelper (>= 10), python3, dh-virtualenv (>= 1.0),
Build-Depends: debhelper (>= 10), dh-systemd (>=1.5), python3, dh-virtualenv (>= 1.0),
python3-setuptools, python3-pip, python3-dev, libffi-dev
Standards-Version: 4.5.0
Homepage: https://edugit.org/documento/documento-printserver
......
[Unit]
Description=Documento Printserver
After=network.target
[Service]
ExecStart=/usr/bin/documento-printserver
[Install]
WantedBy=multi-user.target
\ No newline at end of file
#!/usr/bin/make -f
%:
dh $@ --with python-virtualenv
dh $@ --with python-virtualenv,systemd
override_dh_virtualenv:
dh_virtualenv --python python3 --extra-pip-arg "--no-deps" --use-system-packages
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment