Linux安全网 - Linux操作系统_Linux 命令_Linux教程_Linux黑客

会员投稿 投稿指南 本期推荐: 强烈推荐:Ylmf OS 3.0 正式版发布附迅雷高 XP系统下硬盘安装Fedora 14图文教程
搜索:
您的位置: Linux安全网 > Linux入门 > » 正文

关于ubuntu服务器的启动管理器upstart

来源: urey_pp 分享至:

本文主要写了upstart的启动控制原理。这篇文章的目的在于可以人为的控制upstart初始的的运行等级。
此外,本文附带了大量真实的SHELL脚本文件的内容,这些内容都是服务器刚刚初始化完成后的命令,即$RUNLEVEL的的值并没有遭到任何修改。
 

{未完成,待续}

/etc/inint.d/rc

dgd@dgdsrv:/etc/init$ cat rc.conf
# rc - System V runlevel compatibility
#
# This task runs the old System V-style rc script when changing between
# runlevels.

description     "System V runlevel compatibility"
author          "Scott James Remnant <scott@netsplit.com>"

emits deconfiguring-networking
emits unmounted-remote-filesystems

start on runlevel [0123456]
stop on runlevel [!$RUNLEVEL]

export.html' target='_blank'>export RUNLEVEL
export PREVLEVEL

console output
env INIT_VERBOSE

task

exec /etc/init.d/rc $RUNLEVEL
dgd@dgdsrv:/etc/init$
 

 

 

dgd@dgdsrv:/etc/init.d$ cat rcS
#! /bin/sh
#
# rcS
#
# Call all S??* scripts in /etc/rcS.d/ in numerical/alphabetical order
#

exec /etc/init.d/rc S
dgd@dgdsrv:/etc/init.d$
 


Tags:
分享至:
最新图文资讯
1 2 3 4 5 6
验证码:点击我更换图片 理智评论文明上网,拒绝恶意谩骂 用户名:
关于我们 - 联系我们 - 广告服务 - 友情链接 - 网站地图 - 版权声明 - 发展历史