Questions tagged [init]
109 questions
39
votes
7 answers
How to know if I am using systemd on Linux?
How could I know if my linux starts with systemd or whatever package?
Lucho
- 518
37
votes
3 answers
How can I run a command after boot?
I would like to run the simple shell command echo 1 > /proc/sys/kernel/sysrq at each boot, to enable the sysrq keys. When in boot should this be done, and where should I put a script to do it?
Demi
- 848
- 2
- 12
- 22
18
votes
4 answers
How to enable systemd on WSL2: Ubuntu 20 and CentOS 8
I'm on WSL2 (Windows Subsystem for Linux, v2) and got the CentOS 8 WSL from:
https://github.com/yuk7/CentWSL
And the Ubuntu 20 WSL downloaded from Windows Store has no systemd enabled too.
Got it run as usual, however, systemd is not running,…
Dan D
- 759
15
votes
5 answers
Linux services: is there a GUI for services?
I am looking for a GUI program, that shows running services from /etc/init.d (and /etc/init), and allows to manage (start / stop / runlevel) them. What can you recommend?
Background: even though I like working with the command line, this could ease…
pwn4g3
- 325
14
votes
3 answers
What are the desktop.ini files for?
My desktop has two hidden .ini files:
desktop.ini (370 bytes):
[.ShellClassInfo]
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21799
[LocalizedFileNames]
Microsoft Office - 60 Day Trial.lnk=@C:\PROGRA~1\MICROS~4\mui\oaa.dll,-103
and…
Pacerier
- 28,143
14
votes
2 answers
Where can I config service startup options in Ubuntu?
I'm not used to using Ubuntu or Debian as a server. I'm more accustomed to Red Hat/Fedora ways and even Gentoo (yikes).
Under Red Hat installs, you can often configure most services that start from init using config files in /etc/sysconfig named by…
deltaray
- 2,077
11
votes
3 answers
LANG=C is in a number of the /etc/init.d/* scripts. What does LANG=C do and why do you need to set LANG=C.
Its not clear what it does or what it contains. I tried greping the out put of set and env to see what C or LANG are set to in other places on the systems. Nothing was clear about how it is used or set. I don't even know what man page I should even…
nelaaro
- 14,139
- 30
- 88
- 115
10
votes
2 answers
How do I prevent Apache service from auto-starting on Linux?
My problem is that I don't want to stop the apache daemon with the command ./apache2 stop from /etc/init.d (I know to do this).
I don't want the apache service start automatically in /etc/init.d on the system startup. But I also need to keep the…
Kyrol
- 1,247
10
votes
3 answers
How do I debug an upstart job?
I have the following job in /etc/init/collector:
start on runlevel [2345]
stop on runlevel [!2345]
expect daemon
exec /usr/bin/twistd -y /path/to/my/tac/file
When I start the job with sudo service collector start, it hangs. If I ctrl-c and run…
Cera
- 327
8
votes
4 answers
how do i run a script 5mn after startup?
I have severals RoR websites running on my webserver and I need to run a ruby script at startup.
So, I puted a bash script in /etc/init.d witch call a ruby process.
Unfortunatly that ruby process needs some stuff that isn't loaded yet.
I tried to…
boby lapointe
- 201
8
votes
2 answers
Why do scripts beginning with an 'S' exist in /etc/rc.d/rc{0,6}.d?
Why do scripts beginning with an 'S' exist in /etc/rc.d/rc{0,6}.d? Will there be trouble if I change the 'S' to a 'K'?
Is the behavior of the system changed when it halts/reboots?
Qian
- 511
7
votes
1 answer
Where in CentOS does program start at boot if it's not in init.d?
I have installed a software (GitLab) on CentOS. It works well, but this GitLab starts at boot and I don't want that.
So I took a look at /etc/init.d in order to disable it with chkconfig, but my problem is that there is no gitlab script in it, so I…
Pierre
- 175
7
votes
2 answers
At what point are cgroups initialized for systemd?
So to cut a long story short, I am trying to get systemd working with an Arch install, but without running systemd from init. This means I am booting into a system that is not running systemd, then trying to start systemd on it.
The problem I am…
Robin McCorkell
- 1,176
6
votes
4 answers
Init scripts per user
There is a script (more like a command) which I would like to be executed on a per user-login basis. I've heard of init.d scripts but those require root permissions and are not per-user customizable (AFAIK). Simply put, I am looking for something…
sasuke
- 473
6
votes
2 answers
Differences between /init and /sbin/init
In Linux boot order, the kernel will execute /sbin/init, however, I can see another file /init existing in the file system on my linux (CentOS 8 WSL2, Ubuntu 20 WSL2).
They are different binaries:
$ diff /init /sbin/init
Binary files /init and…
Dan D
- 759