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

本文主要写了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 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$
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值