mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
Revert "log /etc/init.d/networking errors into syslog using /usr/bin/logger"
This reverts commit 99d97bfcd931d40b84387f073a6c1b16866fc1e2.
This commit is contained in:
@@ -13,9 +13,6 @@ PATH="/sbin:/bin"
|
|||||||
RUN_DIR="/run/network"
|
RUN_DIR="/run/network"
|
||||||
IFSTATE="$RUN_DIR/ifstate"
|
IFSTATE="$RUN_DIR/ifstate"
|
||||||
|
|
||||||
NAME=networking
|
|
||||||
SCRIPTNAME=/etc/init.d/$NAME
|
|
||||||
|
|
||||||
[ -x /sbin/ifup ] || exit 0
|
[ -x /sbin/ifup ] || exit 0
|
||||||
[ -x /sbin/ifdown ] || exit 0
|
[ -x /sbin/ifdown ] || exit 0
|
||||||
|
|
||||||
@@ -23,7 +20,6 @@ SCRIPTNAME=/etc/init.d/$NAME
|
|||||||
|
|
||||||
CONFIGURE_INTERFACES=yes
|
CONFIGURE_INTERFACES=yes
|
||||||
EXCLUDE_INTERFACES=
|
EXCLUDE_INTERFACES=
|
||||||
REMOTE_SYSLOG_SERVER=
|
|
||||||
VERBOSE=no
|
VERBOSE=no
|
||||||
|
|
||||||
verbose=
|
verbose=
|
||||||
@@ -51,20 +47,11 @@ gen_examples() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
is_bootup() {
|
|
||||||
# Return 0 if its bootup or return 1
|
|
||||||
[ -f /var/tmp/network/ifstatenew ] && return 1
|
|
||||||
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
perf_options() {
|
perf_options() {
|
||||||
# At bootup lets set perfmode
|
# At bootup lets set perfmode
|
||||||
if is_bootup ; then
|
[ -f /var/tmp/network/ifstatenew ] && echo -n "" && return
|
||||||
echo -n "--perfmode"
|
|
||||||
else
|
echo -n "--perfmode"
|
||||||
echo -n ""
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
process_exclusions() {
|
process_exclusions() {
|
||||||
@@ -152,13 +139,12 @@ start)
|
|||||||
exclusions=$(process_exclusions)
|
exclusions=$(process_exclusions)
|
||||||
perfoptions=$(perf_options)
|
perfoptions=$(perf_options)
|
||||||
log_action_begin_msg "Configuring network interfaces"
|
log_action_begin_msg "Configuring network interfaces"
|
||||||
if is_bootup ; then
|
if ifup -a $verbose $perfoptions
|
||||||
ifup -a $verbose $perfoptions 2>&1 | /usr/bin/logger \
|
then
|
||||||
$REMOTE_SYSLOG_SERVER -s -i -t $SCRIPTNAME
|
log_action_end_msg $?
|
||||||
else
|
else
|
||||||
ifup -a $verbose $perfoptions
|
log_action_end_msg $?
|
||||||
fi
|
fi
|
||||||
log_action_end_msg $?
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
stop)
|
stop)
|
||||||
|
Reference in New Issue
Block a user