Commit 52056219 authored by Marco d'Itri's avatar Marco d'Itri

Add a systemd unit file

Closes: #716862
parent 002fc4ef
......@@ -2,7 +2,8 @@ Source: openbsd-inetd
Section: net
Priority: optional
Maintainer: Marco d'Itri <md@linux.it>
Build-Depends: debhelper (>= 9), pkg-config, libbsd-dev (>= 0.6.0), libwrap0-dev
Build-Depends: debhelper (>= 9), dh-systemd,
pkg-config, libbsd-dev (>= 0.6.0), libwrap0-dev
Standards-Version: 3.9.5
Vcs-Git: git://git.debian.org/users/md/openbsd-inetd.git
Vcs-Browser: http://anonscm.debian.org/gitweb/?p=users/md/openbsd-inetd.git
......
[Unit]
Description=Internet superserver
Documentation=man:inetd(8)
ConditionPathExists=/etc/inetd.conf
[Service]
ExecStart=/usr/sbin/inetd -i
Restart=on-failure
[Install]
WantedBy=multi-user.target
/usr/share/man/man8/inetd.8.gz /usr/share/man/man5/inetd.conf.5.gz
/lib/systemd/system/inetd.service /lib/systemd/system/openbsd-inetd.service
......@@ -30,14 +30,16 @@ binary-arch: checkroot build
dh_testdir
dh_prep
dh_installdirs usr/sbin/ usr/share/man/man5
dh_installdirs usr/sbin/ usr/share/man/man5/ lib/systemd/system/
dh_installdocs
dh_installman inetd.8
dh_installchangelogs ChangeLog
dh_link usr/share/man/man8/inetd.8.gz \
usr/share/man/man5/inetd.conf.5.gz
dh_link
install --mode=755 inetd $D/usr/sbin/
cp debian/inetd.service $D/lib/systemd/system/
dh_systemd_enable
dh_installinit --restart-after-upgrade
dh_systemd_start --restart-after-upgrade
dh_strip
dh_compress
dh_fixperms
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment