diff --git a/net-misc/openbgpd/files/openbgpd.service b/net-misc/openbgpd/files/openbgpd.service new file mode 100644 index 0000000..3962bfd --- /dev/null +++ b/net-misc/openbgpd/files/openbgpd.service @@ -0,0 +1,12 @@ +[Unit] +Description=OpenBGPD Routing Daemon +Documentation=man:bgpd.conf(5) man:bgpctl(8) man:bgpd(8) +After=syslog.target network.target + +[Service] +Type=forking +ExecStart=/usr/sbin/bgpd -f /etc/bgpd.conf + +[Install] +WantedBy=multi-user.target + diff --git a/net-misc/openbgpd/openbgpd-6.6_p0.ebuild b/net-misc/openbgpd/openbgpd-6.6_p0.ebuild index 797a152..6f9d476 100644 --- a/net-misc/openbgpd/openbgpd-6.6_p0.ebuild +++ b/net-misc/openbgpd/openbgpd-6.6_p0.ebuild @@ -3,7 +3,7 @@ EAPI=7 -inherit autotools +inherit systemd MY_PV="${PV/_p/p}" #MY_PN="openbgpd-portable" @@ -43,6 +43,7 @@ src_install() { newinitd "${FILESDIR}/${PN}-init.d" bgpd newconfd "${FILESDIR}/${PN}-conf.d" bgpd + systemd_newunit "${FILESDIR}/${PN}.service" bgpd.service } pkg_postinst() { diff --git a/net-misc/openbgpd/openbgpd-9999.ebuild b/net-misc/openbgpd/openbgpd-9999.ebuild index b088603..74d73a7 100644 --- a/net-misc/openbgpd/openbgpd-9999.ebuild +++ b/net-misc/openbgpd/openbgpd-9999.ebuild @@ -3,7 +3,7 @@ EAPI=7 -inherit autotools git-r3 +inherit autotools git-r3 systemd MY_PV="master" MY_PN="openbgpd-portable" @@ -62,6 +62,7 @@ src_install() { newinitd "${FILESDIR}/${PN}-init.d" bgpd newconfd "${FILESDIR}/${PN}-conf.d" bgpd + systemd_newunit "${FILESDIR}/${PN}.service" bgpd.service } pkg_postinst() {