summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Heim <phreak@gentoo.org>2006-01-15 10:27:03 +0000
committerChristian Heim <phreak@gentoo.org>2006-01-15 10:27:03 +0000
commit20c649ba04c0dabc3169a30dab2c7dc66268dd11 (patch)
tree965ef65412b33d72674aeb92beeaa5437b6bf361 /net-scripts/init.d/net.lo
parentMerging r1802 (diff)
downloadbaselayout-vserver-20c649ba04c0dabc3169a30dab2c7dc66268dd11.tar.gz
baselayout-vserver-20c649ba04c0dabc3169a30dab2c7dc66268dd11.tar.bz2
baselayout-vserver-20c649ba04c0dabc3169a30dab2c7dc66268dd11.zip
Merging r1822 for branches/baselayout-1_12
svn path=/baselayout-vserver/branches/baselayout-1_12/; revision=206
Diffstat (limited to 'net-scripts/init.d/net.lo')
-rwxr-xr-xnet-scripts/init.d/net.lo9
1 files changed, 9 insertions, 0 deletions
diff --git a/net-scripts/init.d/net.lo b/net-scripts/init.d/net.lo
index 2a8ac84..04f030d 100755
--- a/net-scripts/init.d/net.lo
+++ b/net-scripts/init.d/net.lo
@@ -787,6 +787,9 @@ run_start() {
# Call user-defined postup function if it exists
if is_function postup ; then
+ # We need to mark the service as started incase a
+ # postdown function wants to restart services that depend on us
+ mark_service_started "net.${iface}"
einfo "Running postup function"
eindent
( postup "${iface}" )
@@ -823,8 +826,14 @@ run_stop() {
iface_stop "${iface}" || return 1 # always succeeds, btw
+ # Mark us as inactive if called from the background
+ [[ ${IN_BACKGROUND} == "true" ]] && mark_service_inactive "net.${iface}"
+
# Call user-defined postdown function if it exists
if is_function postdown ; then
+ # We need to mark the service as stopped incase a
+ # postdown function wants to restart services that depend on us
+ [[ ${IN_BACKGROUND} != "true" ]] && mark_service_stopped "net.${iface}"
einfo "Running postdown function"
eindent
( postdown "${iface}" )