Difference between revisions of "Linux: Runlevel editor"
Jump to navigation
Jump to search
(Created page with "== Ubuntu == === rcconf == ==== Install ==== <syntaxhighlight> apt-get install rcconf # Install dialog if not installed already sudo apt-get install dialog <syntaxhighlight> ==== Usage ===") |
(→Usage) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | == Ubuntu | + | == Ubuntu - rcconf == |
| − | + | === Install === | |
| − | |||
<syntaxhighlight> | <syntaxhighlight> | ||
apt-get install rcconf | apt-get install rcconf | ||
| Line 7: | Line 6: | ||
# Install dialog if not installed already | # Install dialog if not installed already | ||
sudo apt-get install dialog | sudo apt-get install dialog | ||
| + | </syntaxhighlight> | ||
| + | === Usage === | ||
| + | * List services | ||
<syntaxhighlight> | <syntaxhighlight> | ||
| − | + | root@soc0:/home/Jon# rcconf --list | |
| + | ondemand on | ||
| + | apache2 on | ||
| + | apparmor on | ||
| + | pppd-dns on | ||
| + | rsync on | ||
| + | openipmi on | ||
| + | sudo on | ||
| + | . . . | ||
| + | </syntaxhighlight> | ||
| + | * Disable a service at startup | ||
| + | <syntaxhighlight> | ||
| + | root@soc0:/home/Jon# rcconf --off dnsmasq | ||
| + | update-rc.d: warning: dnsmasq start runlevel arguments (none) do not match LSB Default-Start values (2 3 4 5) | ||
| + | update-rc.d: warning: dnsmasq stop runlevel arguments (0 1 2 3 4 5 6) do not match LSB Default-Stop values (0 1 6) | ||
| + | Adding system startup for /etc/init.d/dnsmasq ... | ||
| + | /etc/rc0.d/K85dnsmasq -> ../init.d/dnsmasq | ||
| + | /etc/rc1.d/K85dnsmasq -> ../init.d/dnsmasq | ||
| + | /etc/rc2.d/K85dnsmasq -> ../init.d/dnsmasq | ||
| + | /etc/rc3.d/K85dnsmasq -> ../init.d/dnsmasq | ||
| + | /etc/rc4.d/K85dnsmasq -> ../init.d/dnsmasq | ||
| + | /etc/rc5.d/K85dnsmasq -> ../init.d/dnsmasq | ||
| + | /etc/rc6.d/K85dnsmasq -> ../init.d/dnsmasq | ||
| + | </syntaxhighlight> | ||
| + | * Enable a service at startup | ||
| + | <syntaxhighlight> | ||
| + | root@soc0:/home/Jon# rcconf --on dnsmasq | ||
| + | </syntaxhighlight> | ||
Latest revision as of 16:10, 28 January 2013
Ubuntu - rcconf
Install
apt-get install rcconf
# Install dialog if not installed already
sudo apt-get install dialogUsage
- List services
root@soc0:/home/Jon# rcconf --list
ondemand on
apache2 on
apparmor on
pppd-dns on
rsync on
openipmi on
sudo on
. . .- Disable a service at startup
root@soc0:/home/Jon# rcconf --off dnsmasq
update-rc.d: warning: dnsmasq start runlevel arguments (none) do not match LSB Default-Start values (2 3 4 5)
update-rc.d: warning: dnsmasq stop runlevel arguments (0 1 2 3 4 5 6) do not match LSB Default-Stop values (0 1 6)
Adding system startup for /etc/init.d/dnsmasq ...
/etc/rc0.d/K85dnsmasq -> ../init.d/dnsmasq
/etc/rc1.d/K85dnsmasq -> ../init.d/dnsmasq
/etc/rc2.d/K85dnsmasq -> ../init.d/dnsmasq
/etc/rc3.d/K85dnsmasq -> ../init.d/dnsmasq
/etc/rc4.d/K85dnsmasq -> ../init.d/dnsmasq
/etc/rc5.d/K85dnsmasq -> ../init.d/dnsmasq
/etc/rc6.d/K85dnsmasq -> ../init.d/dnsmasq- Enable a service at startup
root@soc0:/home/Jon# rcconf --on dnsmasq