Ubuntu - Executing a script at startup and shutdown
来源:互联网 发布:金十app数据下载 编辑:程序博客网 时间:2024/05/01 00:18
[original site]http://ccm.net/faq/3348-ubuntu-executing-a-script-at-startup-and-shutdown
User-defined tasks can be done by executing a script at startup and shutdown for Linux. To execute script at startup of Ubuntu, the rc.local can be modified to include additional commands. To execute script when rebooting Ubuntu, the script has to be copied to the relevant directory. Once the permissions of the script have been changed to executable, it will run when rebooting the Linux operating system. Scripts are run in the alphabetical order in the directories and the scripts should be named following the nomenclature rules when executing a script at startup and shutdown with all distributions of Linux.
To execute a script at startup of Ubuntu
Edit /etc/rc.local and add your commandsThe script must always end with exit 0
To execute a script upon rebooting Ubuntu
Put your script in /etc/rc0.dMake it executable (sudo chmod +x myscript)Note: The scripts in this directory are executed in alphabetical order
The name of your script must begin with K99 to run at the right time.
To execute a script at shutdown
Put your script in /etc/rc6.dMake it executable (sudo chmod +x myscript)Note: The scripts in this directory are executed in alphabetical order
The name of your script must begin with K99 to run at the right time.
- Ubuntu - Executing a script at startup and shutdown
- oracle shutdown and startup
- startup and shutdown scripts
- Startup and Shutdown
- Adding a startup script to be run at bootup
- Automating Database Startup and Shutdown
- 读书笔记---windows startup and shutdown
- Startup and Shutdown Classes in weblogic
- Startup- and Shutdown sequence of OpenOffice.org
- Chapter 2. System Startup and Shutdown
- An Example: Executing Linux Shell Script from a Java Application
- 4 Ways of Executing a Shell Script in UNIX / Linux
- 17 Tips On Working At A Startup
- How to let ubuntu mount at startup?
- myEclipse8.5 startup and shutdown项具体含义
- Startup a JAVA standalone program in UNIX use shell script
- Oracle shutdown 和 startup
- oracle startup shutdown命令
- 【密码学】密码学初步印象--可汗学院
- T-SQL on Select 查询语句执行顺序
- 关于IE,Chrome,Firefox浏览器的字符串拼接问题
- MySQL高效运维需要做好的N个方面
- 广告英文
- Ubuntu - Executing a script at startup and shutdown
- ubuntu 14.04 perl: warning: Setting locale failed.
- 常用前端问题解决方法(持续更新中)
- myeclipse10 安装SVN插件
- 网络架构、云平台和微信公众号开发接入--基于嵌入式工程师的视觉
- 强制踢掉空闲的在线用户
- HTTP协议:缓存
- 关于php开发的一些总结
- NSURLSession使用说明及后台工作流程分析