net-misc/openbgpd: systemd unit
Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr>
This commit is contained in:
parent
98b8e02148
commit
5c2d4c79e5
12
net-misc/openbgpd/files/openbgpd.service
Normal file
12
net-misc/openbgpd/files/openbgpd.service
Normal file
|
@ -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
|
||||
|
|
@ -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() {
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue