Questions tagged [runlevel]
29 questions
18
votes
1 answer
Explanation of chkconfig Levels
What do the levels in chkconfig mean?
e.g.
chkconfig --levels 235 httpd on
DD.
- 3,024
- 10
- 34
- 50
10
votes
5 answers
What is Runlevel 'S' on Debian/Ubuntu for
According to Wikipedia, 'S' is supposed to be a standard runlevel: "Single-User Mode". But if I'm not mistaken, the Single-User mode on Debian is Runlevel 1. One Debian article I found claims, that 'S' is a runlevel "that the system uses on it's way…
Chris Lercher
- 3,982
- 9
- 34
- 41
7
votes
4 answers
Any way to make service do not autostart in Ubuntu/Debian, but leave K00 scripts in place?
I need to have only stop scripts in rcN.d (runlevels 0,1,6) for apache2.
So that I always start it by myself, but when reboot occurs server will shut down apache2 properly.
And when I change runlevel 2-3 server doesnt' touch apache daemon (leaving…
Evgenyt
- 733
- 1
- 7
- 10
7
votes
2 answers
How to change default runlevel of Ubuntu (lucid)?
I have Ubuntu lucid on my home computer. Today I was experimenting with runlevels and I couldn't figure out how to change the default run level of Ubuntu. I can do that using /etc/inittab on Debian 504 but that file is not there in Ubuntu. I have…
Adnan
- 173
- 1
- 1
- 4
6
votes
1 answer
Upstart: stop on runlevel [016] vs stop on starting rc RUNLEVEL=[016]
So, I'm working on an upstart init script for mysql. Should be trivial, right? My stop stanza looks like:
kill timeout 30
stop on runlevel [016]
I shutdown now -r, and mysql yells about my MyISAM tables being crashed, just like I'd kill -9'd my…
Nate
- 229
- 4
- 9
5
votes
2 answers
Execution order of runlevel scripts
My runlevel 0 scripts in /etc/rc0.d, which should be executed when stopping are for example
K05foo -> ...
K10bar -> ...
K80baz -> ...
S10somemore -> ...
S90halt -> ...
Is it correct, that the excution order is as listed above, that is
First all…
Philipp
- 515
- 1
- 5
- 13
5
votes
2 answers
How to run script on first boot?
I need to run some bash script only once on first boot (after OS installation) of my CentOS machine
This script should run before network service start (because this script will change network configuration)
How can I register my script to run…
Dima
- 485
- 3
- 7
- 15
4
votes
1 answer
CentOS Server won't reboot when issuing reboot command
CentOS 5.x
Hi all,
For some reason, my CentOS server didn't want to reboot after I issued the reboot and shutdown -r now commands. All I saw in the /var/log/messages logs were:
Aug 25 13:34:32 voltage-out
shutdown[1784]: shutting down for
…
Mike B
- 11,570
- 42
- 106
- 165
3
votes
0 answers
Centos 6.6 ignores inittab – always boots to runlevel 3
Well, like the title says, I have inittab set to id:5:initdefault but it always boots to runlevel 3 (as confirmed by "runlevel" and "who -r")
Typing 'init 5' brings the GUI up. Also, appending '5' to the kernel grub line also brings up the GUI.
By…
Danny
- 235
- 2
- 10
3
votes
3 answers
Can I use Bash interpreter in service/daemon scripts?
I'm writing a Debian/Ubuntu service that should start on at runlevel 2-5.
Most of the existing services I came accross are written using /bin/sh (Shell) interpreter while /bin/bash (Bash) offer lot of improvement and simplification.
So is there…
Édouard Lopez
- 425
- 1
- 3
- 13
3
votes
1 answer
How to remove MySQL on boot
denis@australia:~$ cat /etc/issue
Ubuntu 12.04.1 LTS \n \l
denis@australia:~$ chkconfig --list mysql
mysql 0:off 1:off 2:off 3:off 4:off 5:off 6:off
But mysql runs on the startup anyway.
Denis
- 219
- 3
- 8
3
votes
1 answer
Cannot get Nginx to start on boot with Ubuntu
I'm running Ubuntu 12.04 and Nginx 1.2.1 which I compiled from source. I tried the below commands to get nginx to start on boot:
$ sudo update-rc.d nginx default
$ sudo update-rc.d nginx enable 2345
In both cases I'm getting the following…
Max
- 3,373
- 15
- 51
- 71
2
votes
1 answer
Delay init from starting a service for a period of time?
I am trying to get a rudimentary NFS server up and running. Right now the server is configured as an NFS server due to a workaround for a vendor issue not supporting direct attached clustered storage, which we are trying to get them to resolve. The…
Matthew
- 2,666
- 8
- 32
- 50
2
votes
1 answer
How to add a service to the S runlevel in Debian?
I have the following script (what it does exactly is not important):
#!/bin/sh -e
### BEGIN INIT INFO
# Provides: watchdog_early
# Required-Start: udev
# Required-Stop:
# Default-Start: S
# Default-Stop:
# X-Interactive: …
MasterM
- 1,031
- 2
- 11
- 18
2
votes
1 answer
how to define service runlevel order position?
I setup bind-dlz and need mysql start prior NAMED when system starts
here is what I have
[root@semenov]# ./test.sh
mysql 0:off 1:off 2:on 3:on 4:on 5:on 6:off
named 0:off 1:off 2:off 3:on 4:on 5:on …
DmitrySemenov
- 755
- 2
- 14
- 27