Questions tagged [runlevel]
The runlevel tag has no usage guidance.
43
questions
12
votes
1
answer
5k
views
How does systemctl schedule system shutdown?
When I type shutdown -h +30, Linux somehow schedules runlevel's change within 30 minutes. On Debian, /sbin/shutdown is symbolic link to /bin/systemctl. My tests indicate that shutdown does not use ...
9
votes
4
answers
24k
views
Launching programs with GUI without display manager
I've heard that there is a way launching programs with graphical interface without display manager - straight from terminal. Is this for real and if so, how can I do that?
6
votes
2
answers
26k
views
How to boot into text mode in Linux Mint LMDE (Debian-based)
Ok, this might sound ridiculous, but of all the issues I could have, I'm scratching my head over booting into text mode. Normally I'm in the opposite direction, such as startx not working.
To put the ...
5
votes
1
answer
4k
views
Solaris11 back to console boot
I installed Solaris 11 X86.
I installed solaris-desktop.
Then Solaris boots to GUI mode.
How can I make the Solaris boots to console mode? (And then optionally starts X by hand?)
5
votes
1
answer
7k
views
How does one tell u-boot to tell the Linux kernel which runlevel to boot to?
I would like to order u-boot to enter a specific runlevel lower than the one the system boots to. How does one accomplish this?
Thank you.
4
votes
3
answers
4k
views
How to boot into command-line mode and keep other services unchanged
I want to configure my Ubuntu installation to boot into a command-line prompt instead of the Gnome Desktop Environment. I ran the below command to effect this:
sudo update-rc.d -f gdm remove
It ...
4
votes
2
answers
294
views
Copy Linux liveUSB causes errors with init.d scripts - Impossible..?
Please post your thoughts ideas or anything you may come up with. I would be very interested to see what anybody else is thinking.
The Overall Problem
When I install a simple Java application (that ...
3
votes
3
answers
5k
views
Ubuntu, control the init startup
Ubuntu uses upstart instead of sysvinit. However there are still runlevels and the links in them.
I have installed tor and it has added itself to the startup of the OS. Now I want to remove it and ...
3
votes
2
answers
2k
views
Is the /etc/inittab file read top down?
When the init process is executed when the kernel has loaded, does it read the /etc/inittab file in a top down approach i.e. it executes each line as it appears in the file.
If so and based on my ...
3
votes
1
answer
1k
views
Kill Infinite loop at Upstart's run level
One of my applications is at a infinite loop in the runlevel 1 by printing No protocol specified continuously after running startx -- :1.
The run level does not listen to my commands given at the run ...
2
votes
3
answers
7k
views
ssh server on runlevel 3
I have been trying to setup a ssh server on my desktop for remote access and have been running into a few issues. The first I have found is that sshd is not starting on boot. As soon as I run:
sudo ...
2
votes
2
answers
863
views
How do I set a unix process to autorun in a particular run level?
I have a stand alone server application that I would like to run automatically when my red hat box starts up. My default run level is 5 but I want to make sure it works both in run level 3 & 5.
...
2
votes
1
answer
2k
views
What are the recommended runlevels for httpd?
I am deploying an httpd server on RHEL6. I've installed the rpm and everything.
Now, when it comes to service startup, most of the post give as example the following line:
chkconfig --levels 235 ...
2
votes
2
answers
413
views
To have two Xorg in two Ubuntu's run levels
Ubuntu support by default only one X at run levels.
I would like to have two Xs: one for Ion3 and for Gnome, in two diffferent run levels.
This means that I need to change the source code of Ubuntu ...
2
votes
1
answer
913
views
How to boot runlevel 3 as non-root user?
I'm using Arch Linux. I can boot to runlevel 3, but any other level than default (7) results in a prompt asking for my root password. (Including runlevel 3.) The normal login screen for linux is ...
1
vote
2
answers
5k
views
Setting up NTP service to Automatic restart
Setting up NTP service to Automatic restart which one should set to on in given
list
ntpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
1
vote
1
answer
518
views
Change CPUfreq in runlevel 1?
I would like to change my cpu speed using runlevel 1 on Ubuntu 8.10: the problem is when I try to run cpufreq_selector -f 2330000 (for instance), the following message appears:
Failed to connect to ...
1
vote
1
answer
513
views
enabling options from shopt terminal output in ubuntu server 12.4 LTS
I just installed Ubuntu Server and is typical of Ubuntu Installs (for me anyway) I'm lost. With the Desktop version I can never figure out the sudoers file and wheel group through SELinux, but this ...
1
vote
3
answers
3k
views
How to Get Run Level in FreeBSD
At Linux we can get run level as like:
if [ "$(runlevel | sed 's/.* //')" = 6 ]; then
echo "A reboot is in progress"
fi
and run level 0 is for shutdown. How can I do the same for Free BSD?
1
vote
1
answer
1k
views
Bluetooth doesn't work in Fedora 15 when system wakes up or changes runlevel
I'm experiencing weird problem when using Bluetooth on Fedora 15. First, to get Bluetooth working, I had to follow this post.
Now, when I boot up and login (runlevel 5, GNOME 3), systemctl status ...
1
vote
1
answer
1k
views
What does "switching runlevel" mean exactly?
What happens when I issue sudo telinit n (n being the new runlevel)? Does init scans /etc/inittab and does exactly the same when system is booted? For example, if I have
rm:2345:wait:/etc/rc.multi
...
1
vote
1
answer
1k
views
Debian - starting UFW (Uncomplicated Firewall) before network interfaces are operational
I want to install UFW on Debian Lenny. Everything looks straightforward except that I don't know where to plug UFW startup script so that it configures iptables before hax0rs can break in.
I've ...
1
vote
1
answer
4k
views
How to check current active target in RHEL7 / CentOS 7
In RHEL 6 we can run runlevel to check current runlevel of my system.
In RHEL 7 we have the command systemctl get-default to check default target but how to check current active target?
1
vote
2
answers
3k
views
systemd: change default runlevel
I found two ways to change the default runlevel in systemd:
https://wiki.archlinux.org/index.php/systemd#Change_default_target_to_boot_into
# systemctl enable multi-user.target
http://www....
1
vote
1
answer
462
views
Runlevel difference between login and logout?
Using Lubuntu 12.04 I want to set a script to run every time I am at the login screen, but I cannot find any information about its run level.
Is it at a different run level by default? Can I make ...
1
vote
0
answers
240
views
Stuck in single user mode after getting the log: systemd[1]: Failed to start LSB : executed by init(8) upon entering runlevel 1 (single)
I tried to enter in single user mode on Ubuntu 20.04 but after the login (or even without the login) it gave me the next log and then it stuck.
systemd[1]: Failed to start LSB : executed by init(8) ...
1
vote
1
answer
338
views
When a power failure results in a fsck, which runlevel is systemd loaded into - emergency mode or rescue?
Can someone please tell me which runlevel systemd is running in when you're prompted for a filesystem check after a power loss? Is it emergency or rescue or does it depend? I have some systemd units ...
1
vote
2
answers
14k
views
Ansible expect not working for multiple prompt values
I need to install nginx agent for openam using ansible.
while install the nginx_agent it asking multiple question while run the script,
**********************************************************...
1
vote
1
answer
2k
views
Change ubuntu defaul runlevel
i need change default runlevel to ubuntu server 14.04. I installed GUI to manage the hp printers and now i need return to runlevel 3, i edit the file /etc/init/rc-sysinit.conf and modify the line:
...
1
vote
1
answer
222
views
How to prevent Ubuntu booting into X
I am actually wondering how to prevent services (in this case the X server) in Ubuntu (14.04) from startup automatically at boot time. I tried:
sudo update-rc.d lightdm remove
and
sudo update-rc.d ...
1
vote
1
answer
32
views
Windows 2008 Runlevel Scripts on Shutdown. Is it possible?
When Windows 2008 gets shutdown or rebooted [not via a script] by someone, is there a way to have a pre-processing script executed similar to UNIX runlevel scripts?
1
vote
0
answers
364
views
How to set up a multi-user text mode in Debian wheezy 7.6?
I'd like to set up one of the available runlevels to work as a 'multi-user text mode' runlevel. Such mode available e.g. on CentOS.
Another example of what I need would be what you get when you add ...
1
vote
2
answers
973
views
How to investigate runlevel initialization?
I'm investigating why a service (solr) is not started upon server booting (in this case a vagrant box, running ubuntu 12.04).
The script is running if i run /etc/init.d/solr start
I run sudo update-...
1
vote
1
answer
277
views
Is it safe to backup init.d and rc*.d
is it possible to backup init.d and rc*.d (i.e. rc3.d) normally?
just copying and adding .backup extension?
I don't want to mess with the symbolic links.
I'm deactivating unnecessary processes (e.g. ...
0
votes
2
answers
2k
views
Is there a "Run Level Configurator" for Windows XP?
I have been having trouble with something causing my Windows XP system to take 6-8 minutes to startup from a cold boot. Something is happening during startup that is causing the system to crawl.
I ...
0
votes
1
answer
485
views
runlevel + how to force multi user mode from run-level 3
we know that runlevl of multi user mode is
N 5
but on our redhat 7.2 we get the following
runlevel
5 3
what is the meaning of this run-level ?
how to change this machine to multi user mode ( ...
0
votes
1
answer
1k
views
Run script in runlevel 1
I'm trying to run a script in runlevel 1 out of /etc/inittab. The script I want to run looks like:
#!/bin/bash
while [ 1 ]
do
#do something
sleep 1
#do something
sleep 1
done
The inittab ...
0
votes
1
answer
765
views
Something stange in /etc/rc0.d
I use Ubuntu 12.04.1
I just wanted to find good tool for managing services, and I see that it is not existing...
Native "update-rc.d" managing services, but don't provide information, and not native "...
0
votes
1
answer
390
views
What run levels determine that the service will start on reboot?
I understand what run levels means, what I am having trouble understanding is. How to determine which service will start on system reboot depending upon run levels?
chkconfig httpd --list
...
0
votes
1
answer
475
views
Change service startup "sequence" with puppet
When using
service { 'ntp':
ensure => running,
enable => true,
# [...]
}
puppet will make sure, that the service will start on boot. Therefore it is creating links for several ...
0
votes
1
answer
171
views
create and run bash script on start of runlevel5
I have created a following hello bash script:
#!/bin/sh
echo "Hello Run Level 5"
I put this script in the /etc/rc.d/rc5.d directory with a name S100RunLevel5. How can I make this script to run ...
0
votes
1
answer
123
views
Graceful shutdown - runlevel 0 scripts not getting called
I am working on a client platform which has RHEL 5.0 OS installed with kernel version 2.6.34.12 .
The issue I am facing is that when this system gets a poweroff signal from remote server, it gets ...
0
votes
1
answer
733
views
Troubles with start up defenition of networking service in Ubuntu
I use Ubuntu 12.04.1.
I put attention that networking script starting in runlevel 0:
user@comp:/etc/rc0.d$ chkconfig -l networking
networking 0:on 1:off 2:off 3:off 4:off 5:off ...