The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
36 views

Linux: Test if in maintenance mode?

I want to run some things differently if I have booted into single-user/maintenance mode. I want to know how I can test in my .bashrc, in particular I would like to start tmux only in that mode, to ...
0
votes
0answers
10 views

upstart + telinit: is it really works?

I think about how to backup my ubuntu server, and I want try one possible solution using init levels. So I downloaded Ubuntu 14.04.2 LTS, install it on VirtualBox, and try: telinit 1 It warn about ...
1
vote
2answers
269 views

How to set up a runlevel 3 in Debian 8?

I have installed Debian 8, but I neeed to use just multi-user text mode, runlevel 3, instead of appear my Gnome 3. But I saw that doesn't exist /etc/inittab. And now?
0
votes
0answers
63 views

Debian change runlevel during boot

I've read lots and understand changing runlevel defaults and during runtime, but how can I change runlevel during the boot up of a Debian server? Background: XenServer virtual machine Debian Server. ...
6
votes
2answers
372 views

Why vim does not recognize new runlevel7 in inittab?

Mainly for test purpose, I wish to modify /etc/inittab and add a new runlevel to my system (/etc/rc7.d). I have not save my modification yet, because I'm confused by Vim behavior. Indeed, the editor ...
1
vote
1answer
59 views

Why do my run level directories contain only start scripts and no single kill script?

I learned here that for each runlevel exist a directory with start and kill scripts. The start scripts are activated on entering , the kill scripts on leaving the runlevel. Start scripts and kill ...
1
vote
1answer
25 views

What happens to the services that do not have a killing-script in the new run level?

I read, that each runlevel has its own set of services or daemons, which can be looked up in /etc/rcX.d (X for the respect runlevel), there are scripts which names start with S and start services of ...
1
vote
1answer
157 views

Send sleep command to usb disk mounted as /home (Fedora 20) from shutdown script

I have a usb sata2 drive connected to usb that is mounted as /home. When I turn off the computer/laptop the disk makes some high pitch sound as if the disks were still spinning and heads were not ...
1
vote
1answer
215 views

systemd and *.service have been not existed (Are they generic?)

As you know, units of systemd have stored in /lib/systemd/system such as : rsync.service avahi-daemon.socket bluetooth.service cups.service When you use the following command : systemctl enable ...
1
vote
0answers
58 views

What's the difference between SysV and SysV-like systems when changing runlevels?

I am planning to take the LPI exam, and need to know how SysV works. As far as I can tell, a real SysV system is described here: ...
1
vote
0answers
100 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
1answer
99 views

How can I examine RUNLEVEL from a bash script on Rasbpian?

I'm writing a bash script that needs to examine the current runlevel, and do different things depending on it. For most Linux distros, it seems there should be a RUNLEVEL environment variable, and if ...
2
votes
1answer
107 views

Shutdown script seems to be executed twice

I have a small backup bash script that I wrote for my computer at work. I have copied the script into /etc/rc0.d/ and called it K01backup so it is executed before anything else upon shutdown. It backs ...
2
votes
3answers
3k views

Why is my Debian jessie always in runlevel 5?

I have configured the lines in /etc/inittab as follows: # The default runlevel. id:2:initdefault: But after logging in the output of runlevel is as follows: N 5 So why am I in runlevel 5 ...
1
vote
0answers
1k 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 ...
4
votes
1answer
59 views

Softlink in rc0.d is working on poweron rather than shutdown

I want to run a script on poweroff in Ubuntu. so I made a script, placed it in init.d & made a softlink in rc0.d with name S36xyz. my script is working perfectly when I run it in terminal. so ...
2
votes
2answers
242 views

Does systemd still know about runlevels?

Does systemd still have the concept of runlevels? For example is it pointless to use telinit <number>?
1
vote
0answers
18 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
1answer
122 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 ...
2
votes
1answer
135 views

Solved - Solaris 10 - Is it possible to reboot a system from a startup script?

I have a Solaris 10 test guest logical domain (LDom). I plan to have the network on this be reconfigured before rebooting using a startup script in /etc/rc0.d. At the moment, when the system boots, ...
0
votes
1answer
186 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 ...
4
votes
2answers
236 views

How to return either “on” or “off” for: chkconfig --list | grep httpd

To ensure httpd is automatically started on reboot. I simply run this command chkconfig httpd on what I am looking for is a way to be told if this setting is on or off instead of this command ...
0
votes
1answer
1k views

Multi-user text mode runlevel in Ubuntu

I use Ubuntu as a server, and I want to change its runlevel to be full multi-user text mode (like init 3 in RedHat). Using runlevel command, I see that am running N 2 which is Graphical multi-user ...
0
votes
0answers
17 views

How do I run a command if my server wakes up from hibernate? [duplicate]

How do I get a bash command executed each time when my server wakes up from hibernate? For ex. I want to restart my XBMC on Ubuntu when my PC wakes up with $ sudo killall xbmc.bin -9 Where should ...
0
votes
3answers
42 views

Shall I expect faster boot when I boot my system with run level 1

I understand that when I set runlevel as 1, my system will boot with very basic set of commands. Does that mean the system will boot faster as compared to run level 5 or 3?
0
votes
2answers
1k views

Switch between runlevel with init command in bash script … init 3 to init 5

I need your help with bash script that I’m trying to build. To keep things simple I will make it short: The script starts running once it’s gets to run level 5 so i copied the script to ...
0
votes
2answers
153 views

Which runlevel is best for a Linux (Debian) server (DBMS/SCM)?

I currently try to harden the system and the security of a Debian server running a database and a source code management. I just want networking and me (one user) to be able to login. Which runlevel ...
4
votes
3answers
1k views

Rings and run levels

The question stated below might not be technically correct(misconception) so it would be appreciable if misconception is also addressed. Which ring level do the different *nix run levels operate in? ...
0
votes
2answers
95 views

Run level script - Help

I want the following command to be ran, as soon as system boots. glances -s -P redhat & How to achieve that? I tried writing a run level script which didn't work as expected.
2
votes
2answers
265 views

How to associate a script at boot time to a specific run level?

I am trying to understand how run levels work. I understand the meaning of the 7 run levels and I understand that they were usually configured by /etc/inittab, which used to call /etc/init.d/rc, which ...
3
votes
1answer
488 views

Relationship among runlevels and virtual terminals (TTY)

When I switch from rulevel 5 to 3 (with init command) and I press CtrlAltF1 up to F7, I realize that now I’m on TTY1 instead of TTY7 and when I switch back to runlevel 5 I return back to TTY7. Why? ...
3
votes
3answers
727 views

Do I need to stop processes like mysql or apache before “reboot”?

I have been wondering if issuing a reboot command safely stops running LAMP processes like MySQL or Apache?
4
votes
3answers
931 views

How do you boot Puppy Linux Slacko into the command line?

How do you boot Puppy Linux Slacko (or Precise or Wary) into the command line? I wish to startx only if I need it. Unfortunately it does not seem to copy Slackware's traditional /etc/inittab runlevel ...
5
votes
1answer
9k views

Create and control start up scripts in BusyBox

I have compiled a custom linux kernel in BusyBox. BusyBox init does not support runlevels. When the kernel boots up in BusyBox, it first executes init which looks for the specified runlevel in ...
3
votes
1answer
1k views

Configuring Yaboot and Debian to Boot into a Command Line Login Shell?

I have a Debian Squeeze variant (MintPPC 9) installed on an old Mac Powerbook G4 (PowerPC CPU). I wish to boot it into a multiuser CLI login shell instead of automatically booting into the login ...
6
votes
2answers
734 views

What happens if I set default system runlevel to 0 or 6?

What I understand from runlevels is that in each level some programs have permission to be executed and some don't. runlevel 3 boots system into CLI and runlevel 5 starts the default GUI. But I don't ...
2
votes
1answer
246 views

Security drawbacks of disabling tty password check

I found that, in /etc/inittab, this modification (-a username) for the user u disables the login/password check for all tty:s: 1:2345:respawn:/sbin/getty -a u 38400 tty1 2:23:respawn:/sbin/getty -a u ...
3
votes
1answer
439 views

SysV init run levels

On a system that uses SysV init run levels such as Centos 5, when the OS is booting, does it go straight to the run level defined in /etc/inittab? If I change my run level using the init command do ...