To view the startup system type for Linux
The mainstream of Linux is currently dominated by two sysvinit and upstart, as well as the recently controversial systemd. So how do you check the boot system of your operating system?
Before online someone used the Pstree command to view the first line to make a judgment. Not particularly accurate.
I use Ls-l/sbin/init to think it is still more accurate.
For example:
Centos5
[Email protected] ~]# ll/sbin/init-rwxr-xr-x 1 root root 43496 Jul 2011/sbin/init
The results indicate that the starting system is sysvinit
Ubuntu
[Email protected]:~$ ll/sbin/initlrwxrwxrwx 1 root root 7 Sep-16:26/sbin/init-upstart*
The results indicate that the starting system is upstart
Centos7
[Email protected] ~]# ll/sbin/init lrwxrwxrwx. 1 root root 14:40/sbin/init. /lib/systemd/systemd
The results indicate that the starting system is SYSTEMD
This article from "Good Life, happy work!" "Blog, be sure to keep this provenance http://yjw1983.blog.51cto.com/265702/1615642
View Linux boot System