加入收藏 | 设为首页 | 会员中心 | 我要投稿 佛山站长网 (https://www.0757zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 搭建环境 > Linux > 正文

ubuntu在关机画面出现前进行网络连接的关闭的修改 - Linux系统

发布时间:2014-12-04 23:38:21 所属栏目:Linux 来源:站长网
导读:mdm.conf 界面关闭服务配置 # mdm - MDM Display Manager # # The display manager service manages the X servers running on the # system, providing login

#此任务调用fork成为一个进程进行处理
expect fork
#upstart对此服务最多等待60秒,超过则进行kill此进程
kill timeout 60

script
   if [ "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" -o "$RUNLEVEL" = "6" ]; then
   #若是关机、重启、单用户运行状态下,执行关机画面
       exec /sbin/plymouthd --mode=shutdown
   else
   #执行开机画面
       exec /sbin/plymouthd --mode=boot --attach-to-session
   fi
end script

#当服务启动后,执行以下脚本
post-start script
   if [ "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" -o "$RUNLEVEL" = "6" ]; then
   #执行关机动画
       exec /bin/plymouth show-splash
   fi
end script

#pre-stop exec /bin/plymouth quit
pre-stop script
    exec /bin/plymouth quit
end script

作者:csdn博客 yygydjkthh

(编辑:佛山站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

热点阅读