Questions tagged [runlevel]

A run level is the operating state of the operating system. Run levels can be: "halt", "single user mode", "multi-user mode", "reboot", "graphical user interface mode/display manger" and others. Each run level starts or kills a set of processes and is denoted by a number typically from 0 to 6. Different operating systems may define different run levels.

1
vote
1answer
2k views

Unknown runlevel on Ubuntu 14.04, services not starting on boot

I rent a VPS from a VPS company and run an Ubuntu 14.04 web server there. Recently it had to be suspended by my provider for a while. After the suspension period (1-2 days), the VPS boots, but cannot ...
1
vote
1answer
2k views

CentOS - upstart script is created, but its never running at all

I have this following setup but its not working in my CentOS 6x (3.10.23-xxxx-std-ipv6-64 #1 SMP Tue Mar 18 14:48:24 CET 2014 x86_64 x86_64 x86_64 GNU/Linux) Step 1: vi /etc/init/a.conf description "...
0
votes
1answer
20 views

Can same level runlevel scripts have the same priority?

Can same level runlevel scripts have the same priority? For instance, can say runlevel x have these 2 scripts: S10ScriptName1 and S10ScriptName2 ? If so, what is the execution order?
0
votes
1answer
199 views

Telinit command not works

I wasn't aware of the telinit command and I've tried to use it without any good result. Below my command telinit 1 I obtain the following error: timeout opening/witing control channel /dev/initctl ...
0
votes
1answer
687 views

Running script at shutdown and reboot to prevent chromium session loss

I'm running Ubuntu 18.04.1 and I'm trying to create a script that shuts down Chromium properly before shutting down the system so that it doesn't give me "restore session" popup after booting. I ...
0
votes
1answer
135 views

Redhat & GUI/GNOME Struggle?

We have in our Company SysAdmin so damm stupied and lazy. Everytime I ask him for a Redhat Virtual Machine(VM),He just deploy a ready template with GUI and lot of package,a lot I think he just install ...
0
votes
1answer
244 views

Difference between telinit and running scripts manually under rc*.d

I was trying to debug my Linux boot process. If I set the default runlevel to 2 or 3, my system hangs without giving me a prompt. I was able to get to runlevel 1 via a kernel parameter, and ran all ...
0
votes
1answer
1k views

telinit 1 and run a command there

I need to do some maintenance on a bunch of Debian (Wheezy) systems, and it has to happen at run level 1. But not all machines have a keyboard and a screen; some are even located somewhere else. So I ...
-1
votes
1answer
99 views

Run init.d script during boot

I need to do something apparently quite simple: run a script on a Debian 8.2 machine during boot (or during shutdown, both of them are fine). The script just moves and renames some files, so the ...
3
votes
0answers
942 views

Why does Linux Mint starts in runlevel 5 even though DEFAULT_RUNLEVEL is set to 2?

When studying about Linux runlevels I came across something I was unable to explain to myself while trying to change the DEFAULT_RUNLEVEL. When I boot Mint, it starts in runlevel 5, even though it ...
3
votes
0answers
547 views

root password not working when entering in Single-User Mode

I want to mount the /var directory in a separate device, but I have to move some files from the current /var to a temporary storage, mount /var on the device that I want and then moving the data from ...
2
votes
0answers
735 views

Where is the run level scripts in Manjaro and Arch?

When I use debian-base OS like Ubuntu, Lubuntu or anything else, I can see runlevel scripts in /etc/rc0.d, /etc/rc1.d, /etc/rc*.d folders. But I can't find this folders in Manjaro and arch Linux ...
2
votes
0answers
424 views

How are runlevels from CentOS 6 chkconfig translated for CentOS 7 systemctl?

How would I translate the following command from CentOS 6 to run in CentOS 7? chkconfig --level 345 dovecot on My first guess is to type the following instead: systemctl enable dovecot But ...
1
vote
0answers
94 views

Run Python script along with OS boot

I'm booting my system with a custom Fedora 27 Workstation live OS which is containing a python script apart from the regular OS files. I want this enable_settings.py scripts to be executed along with ...
1
vote
0answers
339 views

Adding run levels in ubuntu

I want my postgres service to start at run levels 2,3,4,5 and stop at 0,1,6. So, I ran the following command $ sudo update-rc.d postgresql start 30 2 3 4 5 . stop 30 0 1 6 . When I stop the ...
1
vote
0answers
74 views

Runlevels behaviour when kill script has failed

When I execute sudo init 3, the system executes the kill scripts in /etc/rc.3/ One of those scripts returns a failure (this is expected because the thing it's trying to do won't work). When I then do ...
1
vote
0answers
41 views

character device file (rtai_shm) disappears under runlevel=5 in fedora9 (exists when runlevel=3)

I am trying to run Realtime (RTAI) on my Linux Fedora 9 machine. For that, it is needed to have a character device file, named rtai_shm, in /dev, that takes care of shared memory. I have made this ...
0
votes
0answers
113 views

Unable to change from graphical target to other systemd targets in Ubuntu

I am currently a newer user of terminal in Ubuntu. I was trying to demonstrate some features of targets in systemd. Each time that I do systemctl enable or systemctl isolate , I enter my credentials, ...
0
votes
0answers
89 views

gdm3 not loading at boot

I am trying to get Symless Synergy version 1.8.8 to autostart when my Ubuntu 18.04 client desktop boots up. I have followed these instructions carefully, but Synergy only starts after logging in. ...