summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakov Smolic <jakov.smolic@sartura.hr>2021-01-18 12:36:06 +0100
committerDavid Seifert <soap@gentoo.org>2021-01-18 12:36:06 +0100
commitb7a1d04b937b490976b89650e0c0ab162abab7c8 (patch)
tree55c305807c55f573b63b94eac7d526a8e5c32963 /net-misc/ucarp/files
parentnet-misc/sipsak: Remove unused patches (diff)
downloadgentoo-b7a1d04b937b490976b89650e0c0ab162abab7c8.tar.gz
gentoo-b7a1d04b937b490976b89650e0c0ab162abab7c8.tar.bz2
gentoo-b7a1d04b937b490976b89650e0c0ab162abab7c8.zip
net-misc/ucarp: Remove unused file
Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr> Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'net-misc/ucarp/files')
-rw-r--r--net-misc/ucarp/files/ucarp.initd-r158
1 files changed, 0 insertions, 58 deletions
diff --git a/net-misc/ucarp/files/ucarp.initd-r1 b/net-misc/ucarp/files/ucarp.initd-r1
deleted file mode 100644
index 14d84dc01ea4..000000000000
--- a/net-misc/ucarp/files/ucarp.initd-r1
+++ /dev/null
@@ -1,58 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-description="UCARP is a portable implementation of the CARP protocol"
-description_logstatus="Logs the status of ${SVCNAME} to syslog"
-description_demote="Demotes ${SVCNAME} from master to backup"
-
-extra_started_commands="logstatus demote"
-
-command="/usr/sbin/ucarp"
-command_args="--interface=${UCARP_INTERFACE} \
- --srcip=${UCARP_SOURCEADDRESS} \
- --vhid=${UCARP_VHID} \
- --passfile=${UCARP_PASSFILE} \
- --addr=${UCARP_VIRTUALADDRESS} \
- --upscript=${UCARP_UPSCRIPT} \
- --downscript=${UCARP_DOWNSCRIPT} \
- --xparam=${UCARP_VIRTUALPREFIX} \
- ${UCARP_OPTS}"
-
-pidfile="/var/run/${SVCNAME}.pid"
-command_background="yes"
-
-required_files="${UCARP_PASSFILE} ${UCARP_UPSCRIPT} ${UCARP_DOWNSCRIPT}"
-
-depend() {
- need net
- use logger
- provide ucarp
-}
-
-start_pre() {
- local required_vars='UCARP_INTERFACE UCARP_SOURCEADDRESS UCARP_VHID
- UCARP_PASSFILE UCARP_VIRTUALADDRESS UCARP_UPSCRIPT
- UCARP_DOWNSCRIPT UCARP_VIRTUALPREFIX'
-
- local config_var=''
- for config_var in $required_vars; do
- if test -z "$(eval echo \$$config_var)"; then
- eerror "Missing or empty config variable '$config_var'"
- ewarn "You have to edit /etc/conf.d/${SVCNAME} first"
- return 1
- fi
- done
-}
-
-logstatus() {
- ebegin "Logging status of ${SVCNAME} to syslog"
- start-stop-daemon --signal SIGUSR1 --pidfile "${pidfile}"
- eend $?
-}
-
-demote() {
- ebegin "Demote ${SVCNAME} from master to backup"
- start-stop-daemon --signal SIGUSR2 --pidfile "${pidfile}"
- eend $?
-}