Displaying 10 results from an estimated 10 matches for "rc_failed".
2007 Apr 18
1
[Bridge] Linux Bridge + STP + VLAN
...--------
BR_IF_DMZ=eth0
BR_IF_MZ=eth1
BR_NAME=br0
BR_PRIO=1
BR_IF_DMZ_COST=100
BR_IF_MZ_COST=1
VLAN=/etc/vlan.conf # one vlan id per line
echo 1 > /proc/sys/net/ipv4/ip_forward
/sbin/ifconfig $BR_IF_DMZ down
/sbin/ifconfig $BR_IF_MZ down
# /sbin/ifconfig $BR_IF_DMZ 0.0.0.0 promisc || return=$rc_failed
# /sbin/ifconfig $BR_IF_MZ 0.0.0.0 promisc || return=$rc_failed
/sbin/ifconfig $BR_IF_DMZ 0.0.0.0 up || return=$rc_failed
/sbin/ifconfig $BR_IF_MZ 0.0.0.0 up || return=$rc_failed
$BRCTL addbr $BR_NAME || return=$rc_failed
$BRCTL addif $BR_NAME $BR_IF_DMZ || return=$rc_failed
# Basic Settings
sle...
2014 Dec 06
1
Bug#772274: xen-utils-common: when upgrading package: insserv: Service xenstored has to be enabled to start service xendomains
...test ${_RC_RV} = 0; then
log_success_msg " [${_SMSG[${_RC_RV}]}] "
else
log_failure_msg " [${_SMSG[${_RC_RV}]}] "
fi
}
fi
else
# emulate it
echo_rc()
{
echo " [${_SMSG[${_RC_RV}]}] "
}
fi
rc_reset() { _RC_RV=0; }
rc_failed()
{
if test -z "$1"; then
_RC_RV=1;
elif test "$1" != "0"; then
_RC_RV=$1;
fi
return ${_RC_RV}
}
rc_check()
{
return rc_failed $?
}
rc_status()
{
rc_failed $?
if test "$1" = "-r"; then _RC_RV=0; s...
1999 Oct 02
2
How to start smb server when reboot?
...e && START_SMB=yes
test "$START_SMB" = "yes" || exit 0
# The echo return value for success (defined in /etc/rc.config).
return=$rc_done
case "$1" in
start)
echo -n "Starting SMB services:"
startproc /usr/sbin/nmbd -D || return=$rc_failed
startproc /usr/sbin/smbd -D || return=$rc_failed
echo -e "$return"
;;
stop)
echo -n "Shutting down SMB services:"
killproc -TERM /usr/sbin/nmbd || return=$rc_failed
killproc -TERM /usr/sbin/smbd || return=$rc_failed
ech...
1999 Dec 16
3
Samab and init.d
Is it better to start Samba using in initd, or to use the script, much like
the one provided by SuSE. ?? so far I have used the script, but I don't
like the fact of having to start samba manually. I would much prefer to
see it run as a service. just to confirm all it really involves is starting
smbd and nmbd
Rowan [TSS]
Gerber Scientific Products
http://www.gspinc.com
2005 Jan 24
3
Htb, imq and sfq traffic shaping
...u for replies.
Ixen
--------------
My configuration:
Celeron 450MHz, 256MB RAM
Kernel 2.6.9 patched for imq support (imq devices compiled into kernel)
iptables 1.2.11 (also patched for imq)
Script:
#!/bin/sh
DOWNIF=''imq0''
UPIF=''imq1''
rc_done=" done"
rc_failed=" failed"
TC=''/sbin/tc''
IPTABLES=''/usr/sbin/iptables''
IFCONFIG=''/sbin/ifconfig''
MODPROBE=''/sbin/modprobe''
return=$rc_done
tc_reset ()
{
# remove old devices if any
echo "Removing old root qdisc...&quo...
2007 Jun 27
1
Using MGE UPS's with NUT and openSUSE
...the error message "invalid
/proc/bus/usb/003/002 in /etc/ups/ups.conf". A crude workaround is to
look for and comment out some code in /etc/init.d/upsd as follows:
# if test -n "$PORT" && test -e "$PORT" ; then
# chown $UPS_OWNER $PORT || { rc_failed ; rc_status -v ; rc_exit ; }
# else
# echo -n "$0: invalid $PORT in $UPS_CONFIG"
# rc_failed 2 ; rc_status -v ; rc_exit
# fi
I'm sure that a more elegant and permanent solution is possible.
6. When NUT is running, the command "ps aux | grep ups" shou...
2007 Jan 28
1
Bug#408739: xen-utils-common: xendomans script sets WDOG_PID and then references WDOG_PIG
...much this
impairs the behavior of Xen, so I left the severity at "normal". See
below for a simple patch:
--- xendomains.orig 2007-01-27 18:42:02.000000000 -0600
+++ xendomains 2007-01-27 18:42:22.000000000 -0600
@@ -305,9 +305,9 @@
if test $? -ne 0; then
rc_failed $?
echo -n '!'
- kill $WDOG_PIG >/dev/null 2>&1
+ kill $WDOG_PID >/dev/null 2>&1
else
- kill $WDOG_PIG >/dev/null 2>&1
+ kill $WDOG_PID >/dev/null 2>&1...
2007 Jun 29
3
[PATCH] Make xendomains ignore lost+found
...ENDOMAINS_SAVED; do
echo -n " ${dom##*/}"
xm restore $dom
if [ $? -ne 0 ]; then
@@ -239,6 +240,7 @@
if is_running $dom; then
echo -n "(skip)"
else
+ echo "(booting)"
xm create --quiet --defconfig $dom
if [ $? -ne 0 ]; then
rc_failed $?
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
2006 Dec 13
1
Bug#402974: xen-utils-common: xen domain do not always shutdown
...0
}
@@ -316,14 +332,14 @@
echo -n "(shut)"
watchdog_xm shutdown &
WDOG_PID=$!
- xm shutdown $id $XENDOMAINS_SHUTDOWN
+ xm shutdown $id $XENDOMAINS_SHUTDOWN > /dev/null
if test $? -ne 0; then
rc_failed $?
echo -n '!'
fi
kill $WDOG_PIG >/dev/null 2>&1
fi
- done < <(xm list | grep -v '^Name')
+ done < <(xm_list | grep -v '^Name')
# NB. this shuts down ALL Xen domains (politely), not just t...
2007 Aug 30
17
Question about how TC enforces bandwidth limiting
Hello,
I run one of my PCs as my personal router, with iptables+tc to control
traffic and be my firewall.
In TC, I use a combination of htb, qdisc and sfq (as well as prio) to
classify bandwidth. In my current setup, I have 10 classifications of my
bandwidth. (Even I admit this is probably more than I need, but at this
point I''m still learning, so I''ll just leave them be.)