The tag has no wiki summary.

learn more… | top users | synonyms

2
votes
1answer
1k views

Debian init runlevels

It used to be that when you booted most linuxes, you would boot into runlevel 6, unless you did something during the bootloading to change the runlevel,. The process would then look in ...
0
votes
2answers
104 views

At init, run my own script instead of the shell

This is purely theoretical but suppose I would like to deploy a linux distribution on many servers. The only solution I can think of would be to create an initramfs with a custom script to perform ...
0
votes
1answer
219 views

What are my problems with my VMWare runlevel setup?

I recently upgraded to Debian Wheezy (7) and had to upgrade VMWare Player along with that since the version I had didn't like the 3.2 kernel. However, I notice that the kernel modules aren't starting ...
1
vote
2answers
205 views

Once the system has been started, is there any advantage in using systemd?

I'm running Gentoo with the default SysV-style OpenRC init system. The boot time is short enough to not bother me. Is there any reason to try systemd?
19
votes
1answer
1k views

How does systemd survive a kill -9?

Between the recent "Why does 'kill -9 0' end my console session" and "How to get a kernel panic" questions, I got a bur under my saddle and tried kill -9 1 on a mostly up-to-date Arch linux laptop. I ...
7
votes
1answer
498 views

Why does “kill -9 0” end my console session?

I just wonder why kill -9 0 ends my tty console session? What exactly is PID 0, it is not listed on a ps aux?
31
votes
4answers
29k views

What is the difference between reboot , init 6 and shutdown -r now?

I just want to know difference between in reboot init 6 shutdown -r now and which is the safest and the best?
1
vote
2answers
428 views

Which script from /etc/init.d/ started the process?

Let's say we have a PID of a process and we know that it was started by init during startup. How do we find the script name that started it? One way is to run grep $PROCESS_NAME /etc/init.d/*, but ...
1
vote
1answer
1k views

Kernel panic-not syncing: no init found

When I try to boot up my custom linux from scratch it mounts the root filesystem then I get this message: Kernel panic-not syncing: no init found. I have the init compiled from source and I have the ...
2
votes
2answers
2k views

/etc/init.d/script, or /etc/inittab - respawn on die

I have a daemon/service (milter-regex), that is dying. I'm only using it temporarily (A few months), so don't care too much, but I want it to restart when it dies. It is an init.d script. 'service ...
5
votes
2answers
394 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
561 views

Changing service startup order

I use wpa_supplicant to configure the wireless connection. Now I have a problem in that the network service starts before wpa_supplicant so this happens: Bringing up interface wlan0: Determining IP ...
2
votes
2answers
2k views

autossh in /etc/inittab

I have setup ssh tunnel to be able to connect a target computer behind NAT. I have put the following into /etc/inittab on the computer: tu:2345:respawn:/usr/bin/autossh -M 20000 -f -n -N -T -R ...
4
votes
1answer
348 views

inittab '-' character in process field

I have a an inittab file with the following entry: console::askfirst:-/bin/ash According to this Man page a '+' character in the process field means init will not do utmp and wtmp accounting ...
2
votes
2answers
737 views

`[java] <defunct>` with defunct children -> Any way to collect them?

Relating to question : What if 'kill -9' doesn't work? I have following situation : zombie process with threads, not collected by init : [root@Arch64]# ps auxH | grep java gwpl 569 ...
1
vote
1answer
484 views

Why process wont start in Inittab [duplicate]

Possible Duplicate: Add item to inittab on OpenSuse 12.1 I have the following entry in my /etc/inittab (on OpenSuse 12.1): gp:2345:respawn:/usr/local/gpm/bin/gpsrvd Which won't execute ...
6
votes
1answer
2k views

How Do I Add My Own Daemons in Arch Linux? (BSD-style init)

I have created a symlink to a start/stop/etc. wrapper bash script in /etc/rc.d, added it to DAEMONS=() in rc.conf, but the process it points to isn’t starting on boot, and isn’t showing up in the ...
7
votes
4answers
3k views

Add item to inittab on OpenSuse 12.1

I am currently working on a project which needs to be added to inittab so that the program loads during startup. The program that I am trying to start is a c# mono application. I have created a ...
5
votes
1answer
726 views

What will happen if I run the command init in my Ubuntu Gnome terminal?

command init seems to be the first process running after each booting. If I init in my Ubuntu Gnome terminal, will that restart my OS?
3
votes
1answer
537 views

How do systemd and chkconfig interact with respect to services and runlevels?

I recently updated some of our machines to Fedora 17. I have noticed that there are some services that I can configure their runlevels using chkconfig, while others don't appear there at all, and can ...
5
votes
2answers
388 views

Why is a service being started if it isn't mentioned in /etc/init.d?

After a clean install of Fedora 17 and distcc-server, I did a service distccd start, which completed successfully. man service indicates that it would merely be running the distccd script at ...
1
vote
2answers
656 views

How to enable and disable X11 outside of init

We have an embedded version of Meego Linux running on an x86 chip-set that currently uses X11 as the window technology. For various reasons we want to remove X11 from the mix (along with mutter, we ...
0
votes
1answer
533 views

buildroot/busybox: launch bootchartd on startup

I built a custom linux image using buildroot and busybox. To speed up the boot process I'd like to use bootchartd (built-in version of busybox) to profile the process. However bootchartd is not ...
4
votes
2answers
2k views

Why does debian and ubuntu default to runlevel 2?

I never thought about this before, but I was wondering why they chose runlevel 2. Every other distro and OS I've used default to runlevel 3 (with the exception of AIX which also defaults to runlevel ...
1
vote
2answers
1k views

inittab equivalent in fedora 15?

I have just installed Fedora 15 on my laptop. I want to study /etc/inittab as I studied it in RedHat 9. I don't see any script in /etc/inittab. Also , the way the default runlevel can be changed in ...
5
votes
3answers
7k views

File in Ubuntu equivalent to /etc/inittab file in RedHat

I searched a lot but can't get any solution. My question is what file in Ubuntu is equivalent to /etc/inittab file in RedHat. In RedHat /etc/inittab file contains the setting related to runlevel in ...
6
votes
2answers
1k views

What can make passing init=/path/to/program to the kernel not start program as init?

I'm trying to debug an init script on a Linux system; I'm trying to pass init=/bin/sh to the kernel to make it start sh without starting init so I can run through the init sequence manually. What ...
3
votes
5answers
2k views

How can I run a daemon with custom parameters

I am wondering how I can run a daemon, in this case NTP, with custom parameters. For example in my Ubuntu PC I observe that I've got ntpd running this way: $ ps aux | grep ntpd ntp 5936 ... 0:00 ...
2
votes
1answer
429 views

Ubuntu 11.04 Startup Applicatation vs /etc/init.d

Is there any difference between these two methods for application to start on boot? I need an application to start before a logon occurs and am questioning whether or not Ubuntu's Startup Application ...
1
vote
1answer
2k views

“INIT: version 2.86 reloading” - cause and fix?

INIT: version 2.86 reloading appears on screen. Encountered this error and it seems there is no other way to fix this other than rebooting the system. unable to ssh in, unable to login via ...
7
votes
2answers
7k views

Launch process as another user/group (in init.d script)

I am editing a init.d script. The init.d script runs a utility script which then runs an process. From either bash scripts how would I make it launch the main process as a specific user and group?
0
votes
1answer
566 views

Init Script initializing daemonized process, but won't return [ok]

I'm new to init scripts, but the one I'm using I've copied almost verbatim (I did have to change a few things around from the source I found to work with Fedora). The daemon initializes fastcgi just ...
1
vote
0answers
178 views

System got stuck, cannot return to console

I am using Solaris on a Sun Netra 240 box. In the ok prompt I ran init 3 by accident, and now the system is stuck and I can't write anything. I have access to the ALOM prompt, but when I run a console ...
8
votes
6answers
894 views

Bash- detect init system

This may have more to do with detecting operating systems, but I specifically need the init system currently in use on the system. Fedora 15 now uses systemd, Ubuntu uses Upstart, while others use ...
5
votes
2answers
488 views

How do I start my service at boot-time?

I'm trying to run a CherryPy app on my NetBSD 5.1 box. To have it start automatically, I've added this line to my /etc/rc.local: /bin/httpd & When I boot the machine, some of the output of the ...
13
votes
1answer
3k views

init process: ancestor of all processes?

I have always learned that the init process is the ancestor of all processes. Why does process 2 have a PPID of 0? $ ps -ef | head -n 3 UID PID PPID C STIME TTY TIME CMD root ...
13
votes
2answers
18k views

How can I kill a <defunct> process whose parent is init?

Transmission is intermittently hanging on my NAS. If I send SIGTERM, it doesn't disappear from the process list and a <defunct> label appears next to it. If I send a SIGKILL, it still doesn't ...
5
votes
1answer
3k views

How can you get console backgrounds for Arch Linux?

I have tested out openSUSE and found that the tty1 is a bit different from other systems as the tty has got a background. I know that Knoppix has a tux penguin for each core the computer has, but I'm ...
17
votes
7answers
13k views

Can root kill init process?

Can root kill init process (the process with pid 1)? What would be its consequences?
61
votes
4answers
24k views

What are the pros/cons of Upstart and systemd?

It appears systemd is the hot new init system on the block, same as Upstart was a few years ago. What are the pros/cons for each? Also, how does each compare to other init systems?