Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
linux_wiki:init_systems [2015/03/10 23:33] billdozor |
linux_wiki:init_systems [2019/05/25 23:50] (current) |
||
---|---|---|---|
Line 6: | Line 6: | ||
**Checklist** | **Checklist** | ||
- | * Distro: Varies, depending upon init system. | + | * Distro(s): Varies, depending upon init system. |
---- | ---- | ||
Line 35: | Line 35: | ||
^ Description ^ Sysv ^ Upstart ^ Systemd ^ | ^ Description ^ Sysv ^ Upstart ^ Systemd ^ | ||
- | | Halt system | 0 | upstart | + | | Halt system | 0 | runlevel [0] | poweroff.target | |
- | | Single user mode | 1,s,single | upstart | + | | Single user mode | 1,s,single | runlevel [1] | rescue.target | |
- | | User defined. Same as 3 by default. | 2,4 | upstart | + | | User defined. Same as 3 by default. | 2,4 | runlevel [24] | multi-user.target | |
- | | Multi-user, non-graphical | 3 | upstart | + | | Multi-user, non-graphical | 3 | runlevel [3] | multi-user.target | |
- | | Multi-user, graphical | 5 | upstart | + | | Multi-user, graphical | 5 | runlevel [5] | graphical.target | |
- | | Reboot | 6 | upstart | + | | Reboot | 6 | runlevel [6] | reboot.target | |
- | | Emergency shell | emergency | upstart | + | | Emergency shell | emergency | ? | emergency.target | |
+ | |||
+ | * Note: Upstart has many different " | ||
---- | ---- | ||
Line 60: | Line 62: | ||
==== Master Copy of Startup Scripts ==== | ==== Master Copy of Startup Scripts ==== | ||
- | / | + | /etc/rc.d/init.d/ |
==== rc#.d directories ==== | ==== rc#.d directories ==== | ||
- | The rc#.d directories contain symbolic links to the scripts in / | + | The rc#.d directories contain symbolic links to the scripts in /etc/rc.d/init.d. |
# = the run level, ie rc0.d, rc1.d, rc2.d, rc3.d, rc4.d, rc5.d, rc6.d | # = the run level, ie rc0.d, rc1.d, rc2.d, rc3.d, rc4.d, rc5.d, rc6.d | ||
Line 106: | Line 108: | ||
==== Location of Unit Scripts ==== | ==== Location of Unit Scripts ==== | ||
- | All of systemd unit scripts are located here (and sub folders): | + | * All of systemd unit scripts are located here (and sub folders): / |
- | <code bash> | + | |
- | / | + | |
- | </ | + | * Unit control: systemctl |
- | + | ||
- | Systemd uses this directory of symlinks to run those scripts: | + | |
- | <code bash> | + | |
- | / | + | |
- | </ | + | |
- | + | ||
- | Other systemd configuration: | + | |
- | <code bash> | + | |
- | / | + | |
- | </ | + | |
==== Laptop: Disable Suspend ==== | ==== Laptop: Disable Suspend ==== |