diff options
Diffstat (limited to 'community-testing/ipvsadm/ipvsadm.rc')
-rw-r--r-- | community-testing/ipvsadm/ipvsadm.rc | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/community-testing/ipvsadm/ipvsadm.rc b/community-testing/ipvsadm/ipvsadm.rc deleted file mode 100644 index 91ed32e3b..000000000 --- a/community-testing/ipvsadm/ipvsadm.rc +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/bash - -. /etc/rc.conf -. /etc/rc.d/functions -. /etc/conf.d/ipvsadm - -case "$1" in - start) - stat_busy 'Loading IPVS table' - if [[ -f $IPVSADM_CONF ]] && /sbin/ipvsadm-restore < "$IPVSADM_CONF"; then - add_daemon ipvsadm - stat_done - else - stat_fail - fi - ;; - stop) - status 'Clearing IPVS table' /sbin/ipvsadm -C - rm_daemon ipvsadm - ;; - restart) - $0 stop - sleep 1 - $0 start - ;; - save) - stat_busy 'Saving IPVS table' - if /sbin/ipvsadm-save -n > "$IPVSADM_CONF" 2>/dev/null; then - stat_done - else - stat_fail - fi - ;; - *) - echo "usage: ${0##*/} {start|stop|restart|save}" -esac -exit 0 - -# vim:set ts=2 sw=2 ft=sh et: |