net-misc/bird: Remove useless files
Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr
This commit is contained in:
parent
4b6018ff00
commit
faa7f637e1
|
@ -1,40 +0,0 @@
|
||||||
#!/sbin/openrc-run
|
|
||||||
# Copyright 1999-2012 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
extra_started_commands="reload"
|
|
||||||
|
|
||||||
EXE=bird
|
|
||||||
SOCK="/var/run/${EXE}.ctl"
|
|
||||||
|
|
||||||
depend() {
|
|
||||||
need net
|
|
||||||
use logger
|
|
||||||
}
|
|
||||||
|
|
||||||
checkconfig() {
|
|
||||||
if [ ! -f "/etc/${EXE}.conf" ]; then
|
|
||||||
eerror "Please create /etc/${EXE}.conf"
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
start() {
|
|
||||||
checkconfig || return $?
|
|
||||||
ebegin "Starting BIRD"
|
|
||||||
start-stop-daemon --start --exec /usr/sbin/${EXE} -- -c "/etc/${EXE}.conf" -s "${SOCK}"
|
|
||||||
eend $? "Failed to start BIRD"
|
|
||||||
}
|
|
||||||
|
|
||||||
stop() {
|
|
||||||
ebegin "Stopping BIRD"
|
|
||||||
start-stop-daemon --stop --exec /usr/sbin/${EXE}
|
|
||||||
eend $? "Failed to stop BIRD"
|
|
||||||
}
|
|
||||||
|
|
||||||
reload() {
|
|
||||||
ebegin "Reloading BIRD"
|
|
||||||
start-stop-daemon --stop --signal HUP --oknodo --exec /usr/sbin/${EXE}
|
|
||||||
eend $? "Failed to reload BIRD"
|
|
||||||
}
|
|
|
@ -1,40 +0,0 @@
|
||||||
#!/sbin/openrc-run
|
|
||||||
# Copyright 1999-2012 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
extra_started_commands="reload"
|
|
||||||
|
|
||||||
EXE=bird6
|
|
||||||
SOCK="/var/run/${EXE}.ctl"
|
|
||||||
|
|
||||||
depend() {
|
|
||||||
need net
|
|
||||||
use logger
|
|
||||||
}
|
|
||||||
|
|
||||||
checkconfig() {
|
|
||||||
if [ ! -f "/etc/${EXE}.conf" ]; then
|
|
||||||
eerror "Please create /etc/${EXE}.conf"
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
start() {
|
|
||||||
checkconfig || return $?
|
|
||||||
ebegin "Starting BIRD"
|
|
||||||
start-stop-daemon --start --exec /usr/sbin/${EXE} -- -c "/etc/${EXE}.conf" -s "${SOCK}"
|
|
||||||
eend $? "Failed to start BIRD"
|
|
||||||
}
|
|
||||||
|
|
||||||
stop() {
|
|
||||||
ebegin "Stopping BIRD"
|
|
||||||
start-stop-daemon --stop --exec /usr/sbin/${EXE}
|
|
||||||
eend $? "Failed to stop BIRD"
|
|
||||||
}
|
|
||||||
|
|
||||||
reload() {
|
|
||||||
ebegin "Reloading BIRD"
|
|
||||||
start-stop-daemon --stop --signal HUP --oknodo --exec /usr/sbin/${EXE}
|
|
||||||
eend $? "Failed to reload BIRD"
|
|
||||||
}
|
|
Loading…
Reference in a new issue