请问NetworkManager什么时候怎么启动的?

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
dreamworks
帖子: 6
注册时间: 2007-10-25 11:24
送出感谢: 0
接收感谢: 0

请问NetworkManager什么时候怎么启动的?

#1

帖子 dreamworks » 2007-10-26 22:15

请问NetworkManager什么时候怎么启动的?

--------------------------------------------------------------------------------

一般是MBR-->bootloader-->kernel-->init.d-->rcS.d这个时候就启动network了
那么networkmanager呢?


另外

/etc/NetworkManager/dispatcher.d下面有这样一个脚本
01ifupdown
这是用来实时检测网络状态,发现问题调用/etc/network下相关脚本改变网络设置?
#!/bin/sh -e
# Script to dispatch NetworkManager events
#
# Runs ifupdown scripts when NetworkManager fiddles with interfaces.

if [ -z "$1" ]; then
echo "$0: called with no interface" 1>&2
exit 1;
fi

# Fake ifupdown environment
export IFACE="$1"
export LOGICAL="$1"
export ADDRFAM="NetworkManager"
export METHOD="NetworkManager"
export VERBOSITY="0"

# Run the right scripts
case "$2" in
up)
export MODE="start"
export PHASE="up"
exec run-parts /etc/network/if-up.d
;;
down)
export MODE="stop"
export PHASE="down"
exec run-parts /etc/network/if-down.d
;;
pre-up)
export MODE="start"
export PHASE="pre-up"
exec run-parts /etc/network/if-pre-up.d
;;
post-down)
export MODE="stop"
export PHASE="post-down"
exec run-parts /etc/network/if-post-down.d
;;
*)
echo "$0: called with unknown action \`$2'" 1>&2
exit 1
;;
esac
bbqwinner
帖子: 28
注册时间: 2010-12-28 12:58
送出感谢: 0
接收感谢: 0

Re: 请问NetworkManager什么时候怎么启动的?

#2

帖子 bbqwinner » 2011-01-07 0:09

观察network-manager的安装文件,可以发现在/etc/init/文件夹内新建了一个network-manager.conf文件,系统就是靠这个来启动network-manager的
回复

回到 “服务器基础应用”