Linked Questions

0
votes
1answer
911 views

Change Runlevel In CentOS 7 with SystemD [duplicate]

In CentOS 7 I wanted to start httpd service only in runlevel 3 and 5, in other runlevels such as 2 and 4 the service shouldn't start. In CentOS 6 we can achieve this by using "chkconfig" command. ...
1
vote
1answer
347 views

Change runlevel with systemd [duplicate]

systemd still maintains the general idea of runlevels with its "Targets", but how do I change the system runlevel through systemd? I want to do something equivalent to the old init-script method of: ...
0
votes
0answers
12 views

How to find runlevel targets? [duplicate]

I am on Ubuntu 18.04. When I go to /usr/lib/systemd I have these directories boot catalog logind.conf.d scripts system-environment-generators tests user user-environment-generators user-...
112
votes
2answers
145k views

How does systemd use /etc/init.d scripts?

I just switched to debian jessie, and most things run okay, including my graphical display manager wdm. The thing is, I just don't understand how this works. Obviously my /etc/init.d/wdm script is ...
63
votes
3answers
20k views

What is the difference between these commands for bringing down a Linux server?

Reading "What is the difference between Halt and Shutdown commands?" , I generally have an idea what does the command shutdown does, with or without -h/-r options. The "halt" command performs ...
1
vote
3answers
8k views

startx autologin does not run in /etc/inittab in after Debian Jessie update

I installed a minimal Debian system (stable) without GUI, switched to testing/jessie to be able to get the Cinnamon desktop, but X didn't start on boot. If I log in as myself at the CLI, I can type ...
3
votes
2answers
5k views

Why booting into rescue mode menu doesn't do anything?

When I enter into grub menu, I get two entries : CentOS Linux (3.10.0-514.21.1.el7.x86_64) 7 (Core) CentOS Linux (0-rescue-e1ac24cbe9f94f2caa228d77e027be8b) 7 (Core) When I boot into the second line ...
2
votes
1answer
8k views

chkconfig equivalent - RHEL7

In the good old days you would use chkconfig to see if a service was enabled for a run level. E.g. chkconfig --list tgtd However, now you're supposed to use systemctl. But I can't get systemctl to ...
3
votes
1answer
4k views

How to pass arguments to a Linux kernel `init=` bootparam?

Update: I have succeeded in creating a very simple demo of using the init= bootparam to specify that a custom binary (written in golang and compiled) should be used in place of the standard init. The ...
1
vote
3answers
2k views

Why does `init 0` result in “Excess Arguments” on Arch install?

I am used to the old method of calling init 0 to shutdown. Bad, I know; but when I tried it on my new Arch install I get this: # init 0 Excess Arguments This confuses me because I thought systemd ...
2
votes
2answers
2k views

What is the default path that systemd uses to locate locate System V scripts?

Is /etc/init.d the default search path that the systemd generator uses to convert native SysV script to unit files, and falls back to /etc/rc?.d or vice versa? From this answer by @JdeBP: This ...
0
votes
1answer
2k views

inittab respawn and rc.local

At the moment I have a daemon starting at boot using rc.local by the following line. su -l user -c '/dir/daemon' but I would like to start this process as a service with respawn. I found out that it ...
3
votes
0answers
979 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 ...
0
votes
1answer
255 views

Understanding shutdown command in inittab

Looking in my /etc/inittab file I see the following entry: ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now What do the -t1 and -a options mean? They do not appear in the manual for the shutdown ...
0
votes
1answer
216 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 ...

15 30 50 per page