Questions tagged [inittab]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
379 views

T0 vs S0 in inittab for serial ttyS0 access

I can't find any documentation on what the difference between "S0" and "T0" in the inittab file for granting serial access to console is. People seem to use it interchangeably: T0:12345:respawn:/sbin/...
xiconfjs's user avatar
0 votes
1 answer
612 views

init / inittab respawn (count number of times it occurs) [closed]

I added the following line in my /etc/inittab to respawn a program if it crashes. #test must always run. aa:2345:respawn:/home/pi/test/test Is there a way to know how many times the init/respawn ...
ssinfod's user avatar
  • 113
1 vote
1 answer
93 views

Simplest infinite script exec without upstart

I've got a CentOS 5.11 box that I have to work with for now--in a production env where I can't really push it to CentOS 6, at least for awhile. I have to be low-impact on this project, can't mess up ...
Dan's user avatar
  • 61
1 vote
1 answer
942 views

init: Id "2" respawning too fast

I've just updated a CentOS 5.10 box to 5.11 with all the latest patches and rebooted. Following the reboot I'm now getting the below error message every few minutes: init: Id "2" respawning too ...
moztech's user avatar
  • 188
0 votes
1 answer
3k views

"No inittab file found" after reset

An old dedicated server (Debian with Raid1) wasn't responding today and now can't boot after manual reset. Last message is No inittab file found. I still have access to filesystem via rescue ...
acy's user avatar
  • 208
3 votes
2 answers
10k views

How to respawn a script in RHEL/Centos6 when /etc/inittab has been deprecated?

I have a custom init script and I want that script to be respawned if in case the process dies. In RHEL/Centos 6 /etc/inittab is deprecated. So how should I ensure the process will be respawned?
Shashank's user avatar
-1 votes
1 answer
198 views

can't reset password from centos

I lost the root password. So I modified /etc/shadow and also changed '/etc/inittab' file to access single user mode. But both didn't work. It asked me for a password that I don't have. Why updating ...
Purres's user avatar
  • 239
-1 votes
1 answer
703 views

chkconfig vs /etc/inittab

I had a look at what chkconfig and /etc/inittab - from what I could see both does the same something. If I am wrong, what is the different and which one I should use for specific requirement?
I'll-Be-Back's user avatar
5 votes
3 answers
9k views

(ubuntu) How to kill a respawn service

I like to respawn a service when the service goes down. I have added it to inittab however I cannot kill it when i need to. Is there away i can respawn a service however be able to kill it manually ...
super2442804's user avatar
2 votes
3 answers
18k views

/etc/inittab respawn script migrating from RHEL/CentOS 5.x to 6.x

I have a non-forking perl script running as a TCP-sockets daemon (this script is a backend for a multiplayer game) in CentOS 5.7. It is being started and respawned by /etc/inittab: pref:3:respawn:/...
Alexander Farber's user avatar
3 votes
2 answers
3k views

Restarting a Perl-script (socket daemon) from /etc/inittab

I run a small multiplayer card game with around 500 users at peak times: The client is in Flash and the server is in Perl. The Perl server binds to port 8080, i.e. only 1 instance of it can be ...
Alexander Farber's user avatar
1 vote
7 answers
33k views

init.d script not working .... but the command works if I execute it in the console

I have a command that is working fine if I executed it from the command line ... but when I put it in an init.d script it wont's start (well .. it starts but have a behavior different from that when ...
massi's user avatar
  • 113
4 votes
3 answers
2k views

agetty IPMI serial console on RHEL respawning too fast

I have a dell poweredge 2970 server with a serial console over ip enabled on the first ethernet. The server with Red Hat enteprise 5.4 is configured to have console over ttyS1 in grub (console=ttyS1,...
golemwashere's user avatar
3 votes
1 answer
443 views

(CeontOS) How to respawn lighttpd & MySQL in "/etc/inittab"

I need to manually create auto-respawning for lighttpd & MySQL to make sure it running all time But what is the code to put in /etc/inittab? thanks
user avatar
0 votes
2 answers
382 views

Start up a process before I log in? (linux)

I want to start up synergy on my suse box (gnome) automatically before (preferably, or after) I log in. How do I do this? I am a major Linux newbie and I tried writing the below on the last line of /...
user avatar
6 votes
8 answers
3k views

Using inittab to ensure sshd (and other important items) are still running -- any drawbacks?

Having managed to kill sshd on a remote machine (by running a script which used all available memory in the machine, oops...) which I have no access to other than visiting the hosting for[1], I was ...
David Gardner's user avatar
3 votes
7 answers
5k views

Change Run Level

I always forget how to do this, how to I change the inittab run level of a server/daemon?
Peter Turner's user avatar
  • 2,278