diff --git a/debian/control b/debian/control index 14952c2..e12aba5 100644 --- a/debian/control +++ b/debian/control @@ -1,26 +1,26 @@ Source: sylkserver Section: net Priority: optional Maintainer: Saul Ibarra Uploaders: Dan Pascu , Adrian Georgescu -Build-Depends: debhelper (>= 7.3.5), python-all (>= 2.7) +Build-Depends: debhelper (>= 7.3.5), dh-systemd, python-all (>= 2.7) Standards-Version: 3.9.6 Package: sylkserver Architecture: all Depends: ${python:Depends}, ${misc:Depends}, python-application (>= 1.4.0), python-eventlib, python-lxml, python-sipsimple (>= 2.4.0), python-twisted-web, python-werkzeug Suggests: libavahi-compat-libdnssd1, python-twisted-words, python-wokkel (>= 0.7.0) Recommends: sylkserver-sounds Description: A state of the art, extensible SIP Application Server SylkServer is an application server that can be programmed to perform SIP end-point applications and act as a gateway between SIP and XMPP domains. Package: sylkserver-sounds Architecture: all Depends: ${misc:Depends}, sylkserver Description: A state of the art, extensible SIP Application Server SylkServer is an application server that can be programmed to perform SIP end-point applications and act as a gateway between SIP and XMPP domains. . This package contains sounds used by SylkServer. diff --git a/debian/rules b/debian/rules index 771a08b..0721299 100755 --- a/debian/rules +++ b/debian/rules @@ -1,19 +1,19 @@ #!/usr/bin/make -f #export DH_VERBOSE=1 %: - dh $@ --with python2 + dh $@ --with python2 --with systemd override_dh_clean: dh_clean rm -rf build dist MANIFEST override_dh_install: install -m 0644 *.ini.sample debian/sylkserver/etc/sylkserver/ dh_install override_dh_installinit: dh_installinit --no-start .PHONY: override_dh_clean override_dh_install override_dh_installinit diff --git a/debian/sylkserver.default b/debian/sylkserver.default index ac8b529..d96d103 100644 --- a/debian/sylkserver.default +++ b/debian/sylkserver.default @@ -1,11 +1,13 @@ # # SylkServer startup options # +# NOTE: This file is not used when systemd is in use + # Set to yes to enable SylkServer, once configured properly # by editing /etc/sylkserver/config.ini RUN_SYLKSERVER=no # Set to yes to enable creating code dump files in case of a crash DUMP_CORE=no diff --git a/debian/sylkserver.service b/debian/sylkserver.service new file mode 100644 index 0000000..2f2817d --- /dev/null +++ b/debian/sylkserver.service @@ -0,0 +1,11 @@ +[Unit] +Description=SylkServer SIP application server +After=network.target + +[Service] +Type=simple +ExecStart=/usr/bin/sylk-server --no-fork +Restart=on-abnormal + +[Install] +WantedBy=multi-user.target