ctrl2cgi: Add systemd service file and install with debian

Change-Id: I062ae5b9ed09f52b27c7d85b31daba0d14751846
changes/93/10693/1
Pau Espin 4 years ago
parent f1f8285b79
commit 4b6f654646
  1. 11
      contrib/systemd/ctrl2cgi.service
  2. 1
      debian/python3-osmopy-utils.ctrl2cgi.service
  3. 5
      debian/rules

@ -0,0 +1,11 @@
[Unit]
Description=Proxy between given GCI service and Osmocom CTRL protocol
[Service]
Type=simple
Restart=always
ExecStart=python3 /usr/bin/ctrl2cgi.py -o -d -c /etc/osmocom/ctrl2cgi.ini
RestartSec=2
[Install]
WantedBy=multi-user.target

@ -0,0 +1 @@
../contrib/systemd/ctrl2cgi.service

5
debian/rules vendored

@ -12,3 +12,8 @@ override_dh_auto_install:
rm -rf $(CURDIR)/debian/python3-osmopy-libs/usr/bin
python3 setup.py install --install-layout=deb --root=$(CURDIR)/debian/python3-osmopy-utils
rm -rf $(CURDIR)/debian/python3-osmopy-utils/usr/lib
override_dh_installinit:
# Install service file with different name than package name:
# https://unix.stackexchange.com/questions/306234/is-it-possible-to-install-two-services-for-one-package-using-dh-installinit-how
dh_installinit --name=ctrl2cgi

Loading…
Cancel
Save