Questions tagged [inittab]

17 questions
6
votes
8 answers

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 considering ways to ensure that sshd is always kept…
David Gardner
  • 1,499
  • 2
  • 13
  • 25
5
votes
3 answers

(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 when i need to. thanks in advance
super2442804
  • 53
  • 1
  • 5
4
votes
3 answers

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,57600 ) and in /etc/inttab I…
golemwashere
  • 724
  • 1
  • 10
  • 21
3
votes
2 answers

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
  • 31
  • 1
  • 2
3
votes
2 answers

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 started (important detail). The Perl server poll()s…
Alexander Farber
  • 714
  • 4
  • 16
  • 38
3
votes
7 answers

Change Run Level

I always forget how to do this, how to I change the inittab run level of a server/daemon?
Peter Turner
  • 2,048
  • 9
  • 33
  • 45
3
votes
1 answer

(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
unknown
2
votes
3 answers

/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:/bin/su -c '/usr/local/pref/pref.pl >/tmp/pref-`date…
Alexander Farber
  • 714
  • 4
  • 16
  • 38
1
vote
1 answer

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 this production box. I have a script, call it…
Dan
  • 61
  • 2
1
vote
1 answer

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 fast: disabled for 5 minutes Line 2 of /etc/inittab…
moztech
  • 188
  • 6
1
vote
7 answers

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 it is run directly). Any idea why this is not…
massi
  • 113
  • 1
  • 1
  • 5
0
votes
1 answer

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/getty -L ttyS0 115200…
xiconfjs
  • 3
  • 1
0
votes
1 answer

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

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 event occurs ? Is there a log file for inittab ? I'm…
ssinfod
  • 113
  • 1
  • 4
0
votes
1 answer

"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 system. Ran fsck and checked raid (both arrays are…
acy
  • 208
  • 1
  • 8
0
votes
2 answers

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 /etc/inittab syn:5:once:synergys --config…
user274
1
2