ctrl2cgi: Add systemd service file and install with debian
Change-Id: I062ae5b9ed09f52b27c7d85b31daba0d14751846
This commit is contained in:
parent
f1f8285b79
commit
4b6f654646
|
@ -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
|
|
@ -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…
Reference in New Issue