linux_command - TuPengXiong/TuPengXiong.github.io GitHub Wiki
#Linux 常用命令
- 查看Linux的版本
cat /proc/version
- 结果
Linux version 3.16.0-77-generic (buildd@lgw01-09)
(gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3) )
#99~14.04.1-Ubuntu SMP Tue Jun 28 19:17:10 UTC 2016
开机自启动 Ubuntu
The scripts in /etc/init.d/ are scripts that control services. Controlling means that they take care of starting, stopping and similar actions.
They are not automatically executed at startup. Instead, you must assign scripts to runlevels, which is done with the update-rc.d command on Debian-based systems (which Ubuntu is).
For example, to add your supervisor service to all default runlevels, you would execute
sudo update-rc.d supervisor defaults
Also, you're asking for the difference between /etc/init.d and /etc/init:
/etc/init.d contains the service scripts,
/etc/init contains configuration for these scripts (descriptions. dependencies, post-/pre-actions). However IIRC, /etc/init is specific to SysV init.