Server :: Respawn A Service Using Respawn Entry In /etc/inittab

Oct 5, 2010

how i can respawn a process/system service by adding respawn entries in /etc/inittab ?

View 1 Replies


ADVERTISEMENT

Red Hat / Fedora :: Use Inittab At The Inittab To Initiate A Program At Startup?

Jul 5, 2010

1. I am using CentOS 5.4 and I try to use inittab at the etc/inittab to initiate a program at startup

2. Below is my script and saved as heritrix.sh

#!/bin/bash
export HERITRIX_HOME=/root/heritrix-1.14.3
cd $HERITRIX_HOME
chmod u+x $HERITRIX_HOME/bin/heritrix
$HERITRIX_HOME/bin/heritrix --admin=LOGIN:PASSWORD --port=9090

3. I did the chmod +x for the permission already.

4. I not confirmed whether it is running at startup.

5. the script is no problem as I have check it

View 2 Replies View Related

Server :: Bad Entry In Directory Unaligned Directory Entry?

Apr 1, 2011

I have the following error on one of my servers. Is there a way to tell which directory is exactly having the problem? if there is, if i delete that directory, will that resolve the problem or no?kernel: EXT2-fs error (device md(9,0)): ext2_check_page: bad entry in directory #10158084: unaligned directory entry - offset=0, inode=605471640, rec_len=7606, name_len=177

View 4 Replies View Related

Server :: No Entry In Log File

Mar 9, 2011

In my server i was not able to find any log entries in /var/log/messages,/var/log/secure.there is no entry found in /var/log/messages just the file is empty.i want to know wat would be the problem & solution for the problem.

View 2 Replies View Related

Server :: Administration - Get Entry Level Job

Jun 13, 2011

I am a M.C.S.E certified professional and i want to become a linux admin, presently i am pursuing rhce from a reputed institute , how can i get entry level job in linux , which topics i should be very clear.

View 3 Replies View Related

Server :: Use Resolv.conf To Have A Local DNS Entry?

Jan 10, 2011

I am having a situation where I do not have DNS server (the person who has that is not me) for a few websites which are running on a reverse proxy. I recently after having a long trouble shooting hours found that my proxy pass entries look as follows

Code:

ProxyPass /app1 http://192.168.1.3:8080/app1
ProxyPass / http://192.168.1.3
ProxyPassReverse /app1 http://192.168.1.3:8080/app1
ProxyPassReverse / http://192.168.1.3

If I use the entries as above then some one from internet is able to access the sites.But from within LAN people are unable to access it.

How ever if I use

Code:

ProxyPass /app1 http://site1.myserver.com:8080/app1
ProxyPass / http://site1.myserver.com
ProxyPassReverse /app1 http://site1.myserver.com:8080/app1
ProxyPassReverse / http://site1.myserver.com

then things work on LAN but from internet it is not accessible.What can be a solution in this case will putting things in resolv.conf do?

View 7 Replies View Related

Server :: New Zone Entry In Master Not Getting Updated At Slave

Feb 19, 2011

I have configured master and slave Bind servers. Everything works fine. But whenever I add a new zone entry at master server it is not getting updated at slave server in logs I see this error:
client 192.168.1.1#43428: view external: received notify for zone 'yourdomainname.com': not authoritative

At master server I do not see any error or warning message. This error clearly indicates that named.conf file does not have zone entry in it or domain name is wrong. While checking the named.conf file I see that the zone entry has not been updated at slave server. If I update it manually and reload named on slave then zone files (db files) are getting created without any issue and any modification at master server for the zone records are also getting updated. My concern is why zone record is not getting appended at slave server in named.conf file.

Is there anything I am missing in the configuration. I am pasting the steps which I have followed to configure my master and slave server:
Configure Bind as master and slave server
Install Bind on your server
yum install bind
OR
sudu apt-get install bind9
Generate RNDC Key using the command
rndc-confgen -a -k rndc-key
it will stored in /etc/rndc-key file
Master Server IP 192.168.0.1
Slave Server IP 192.168.1.1
Master Server Configuration
options .....

View 8 Replies View Related

CentOS 5 Server :: A New Service Appears After The Entire Server Was Replaced

Mar 29, 2010

I noticed that my VPS was rebooted recently and a new service appears

[root@localhost ~]# pstree
init─┬─brcm_iscsiuio───2*[{brcm_iscsiuio}]

View 3 Replies View Related

Server :: Ddns Reverse Zone Updates Add Subdomain Twice To Each Entry?

Mar 8, 2011

I've run into a strange issue with a DHCP/DDNS setup whereby when the DHCP server asks the DNS server to add a new host, the forward map is added correctly but the reverse map has the subdomain added twice (e.g. 192.168.25.192.168.25.250)I'm running ISC DHCPd version 3.0.1 and BIND version 9.2.3 on SuSE 9.2 - 32bit.Here is my dhcpd.conf file:

# dhcpd.conf
authoritative;
include "/etc/named.keys";

[code]....

View 2 Replies View Related

Server :: Not Booting - Remove The Entry From Fstab For /home It's Read Only

Jun 15, 2011

when i starting the server..it is coming to maintenence mode and saying repair file system...because /home1 was not found in /etc/fstab.. when i tried to remove the entry from fstab for /home..it is read only!!

View 5 Replies View Related

Ubuntu Servers :: Mount Works But Fstab Entry For Same Server Doesn't?

Jul 28, 2011

Code:
192.168.0.133:/openils /openils nfs4 rw,_netdev,auto 0 0
fails to mount the nfs4 share, however

[code]...

View 6 Replies View Related

Server :: Secure Ftp - Encrypts Passcode Transaction And Logs Attempted Entry

Jan 22, 2011

I need a single user ftp server on a dedicated machine which encrypts passcode transaction (and preferably everything else) and logs attempted entry. Assume forwarding port stuff / DMZ stuff is already setup.
connecting client will be either command-line tools or winscp, depending on client OS.

View 2 Replies View Related

Server :: Samba Entry Of Fstab To Mount Windows Shared Folder On Machine

Dec 15, 2010

I spent all day learning some concepts of Samba which I left while preparing for RHCE.One of them is how to permanently mount (fstab entry) windows shared folder.Manually mount command is running fine for me.

View 6 Replies View Related

Server :: Centos5 Server Named Service

May 5, 2010

I have been finding the solution of this problem from last 2 days but i am still unable to get a clue what's happening?I have a virtual dedicated server in godaddy with CENTOS5 operating system. The problem is occurring with the named service. It is becoming dead within 1 hour of starting it./named status gives named is dead but subsys is locked.The issue is their in google but it has no solution.Anybody have a idea what's going on ... i am fed up of starting teh named service again and again.

View 2 Replies View Related

Fedora :: Cannot Start Mgetty From Inittab?

Feb 8, 2010

I've updated a Fedora Core 3 server to Fedora 11. The old FC3 had an external modem attached for when we felt like dialing in for a ppp connection. I've replicated login.config, mgetty.config and dialin.config from the old server and had to put a RS232-to-USB adapter on the modem. I've test connected to the server and everything look fine.
I'm have a difficult time starting the getty session from inittab.

/etc/inittab:
Code:
id:5:initdefault:
si::sysinit:/etc/rc.d/rc.sysinit
l0:0:wait:/etc/rc.d/rc 0
l1:1:wait:/etc/rc.d/rc 1
l2:2:wait:/etc/rc.d/rc 2

[Code]...

View 3 Replies View Related

Fedora :: Inittab No Such File Or Directory?

Jul 13, 2010

I tried to go to the inittab folder by typing /etc/inittab.

The following is the error message I get

[root@localhost /]# cd /etc/inittab
-bash: cd: /etc/inittab: Not a directory

View 5 Replies View Related

General :: Can't Find Inittab On My System?

Jul 17, 2010

I'm using Ubuntu 10.04 and i can't find inittab on my system? Where did it go? Has Ubuntu removed this file? How can i find out about runlevels now?

View 4 Replies View Related

General :: How To Edit Inittab File

Mar 25, 2010

The default setting of linux is run level 5 (Red Hat 9) I want to use my system in Runlevel 1. For that purpose i 1st check the permission which were

-rw-r--r--

I want to edit the File " vim /etc/inittab " in the terminal . which line should i edit so I may use it in a single mode.

2-The second thing i want to ask that before editing any important file which are /etc like "inittab" can i 1st make it's copy and keep it in my home directoty so,in case of any mistake I can get my original file?

View 2 Replies View Related

Software :: Faxgetty Not Starting From Inittab?

Feb 9, 2010

I've installed and setup Hylafax in PCLOS 2009.2 I can get it to all work if from a console I su as root and type faxgetty ttyS0 the console is "locked" running faxgetty until I kill it. But while it is running everything works.

in my inittab there was a commented line at bottom #t0:23:respawn:/usr/sbin/faxgetty ttyS0

I have uncommented it, saved it, restarted PC but faxgetty is not running. Is there some logging on inittab that may highlight the problem,

View 3 Replies View Related

Software :: Can't Access /etc/inittab In Ubuntu 9.04?

May 22, 2010

i cant access in /etc/inittab in the etc directory. because i don't have any other files like this. then how to i change the #Default run level mode to 4 in ubuntu 9.04.

View 3 Replies View Related

Slackware :: Modified Inittab And Sound Is Gone?

Apr 27, 2010

I'm using slack13 and have changed entry in inittab from

Code:
id:3:initdefault:
to
Code:
id:4:initdefault:

to login straight to window system. However after that sound is gone. When I go to mixer it says that audio device cannot be used 'might be access problem'. So I've changed entry to what it was and starting X11 by 'startx' and then sound works again.

View 14 Replies View Related

CentOS 5 :: Gdm Won't Autostart Even With Id:5:initdefault: In /etc/inittab

Apr 18, 2011

I have a new CentOS 5.6 installation. It was installed in text mode. I have changed the line id:3:initdefault: in /etc/inittab to id:5:inittab. Even after that change, gdm does not start automatically. gdm is installed, and can be started from the command line. I have put DISPLAYMANAGER="GNOME" and DESKTOP="GNOME" in /etc/sysconfig/desktop.

I would like to get gdm to start automatically.

I observer that rhgb is running after startup:

[root@host ~]# ps axu |grep rhgb
root 3830 0.0 0.0 165676 10816 ? Ss 12:10 0:00 /usr/bin/rhgb
root 3840 0.0 0.0 87976 7996 tty8 Ss+ 12:10 0:07 /usr/bin/Xorg -s off

[Code]....

View 13 Replies View Related

Ubuntu Servers :: Perform An Action Before A Service Starts And After A Service Stops

Sep 10, 2010

I am running Server 10. I have a requirement to perform an action before the MySQL service starts, and perform another action after MySQL service stops.

I found the init script for MySQL under /etc/init/mysql.conf. I added my thing to the pre-start script there and works fine.

I am having trouble finding the script that stops the server so I can modify.

View 1 Replies View Related

Fedora :: No Inittab - How To Set Run Level In FC12 Live

Mar 22, 2010

How to set the run level now in FC12 Live?
inittab not present at /etc/inittab
# updatedb
# locate inittab
not found

View 2 Replies View Related

General :: Can't Get Mgetty To Start From Inittab / Resolve This?

Feb 8, 2010

I've updated a Fedora Core 3 server to Fedora 11. The old FC3 had an external modem attached for when we felt like dialing in for a ppp connection.
I've replicated login.config, mgetty.config and dialin.config from the old server and had to put a RS232-to-USB adapter on the modem.
I've test connected to the server and everything look fine.
I'm have a difficult time starting the Getty session from inittab.code...

View 1 Replies View Related

General :: Adding An Environment Variable To Inittab?

Jul 22, 2010

im quite new to Unix stuff Im in need to add a script to be executed, in to /etc/inittab for that i need to get the path to my java installation. I have set the JAVA_HOME env variable already, my question is whether we can use JAVA_HOME in inittab? i mean, are those env variables are crated by the time inittab starts? if so, how can i add the entry

currently im having is like this
pse:5:respawn:su - <username> -c "$JAVA_HOME/other-path/pp.sh run"
is there any issue with the syntax?

View 2 Replies View Related

General :: Editing Inittab File From Grub?

Jul 27, 2010

During my several experiment on linux I accidentally put the default runlevel to the value 6..thus before starting its going to restart ..currently running mint 9. there is only one way that somehow i can edit that file from grub command line.

View 4 Replies View Related

Software :: Inittab Application Can't Generate Coredump

Mar 24, 2010

We have to run our applications under /etc/inittab, we can get coredump with os solaris. After we move our platform to LINUX, we just find our application reset itself for a couple of times without any coredump generate.

View 1 Replies View Related

General :: Will Command Service Httpd Restart Apache Service?

Dec 25, 2009

will the command service httpd restart the apache service if i enable httpsd service in graphical mode

View 12 Replies View Related

Server :: Add New Service On Rhel 5?

Jul 21, 2010

I'm using java socket server program for transaction routing on rhel5. So I make a jar file of server to be run.

Now I need to add my application as a service. I just search in google how to do that, And i found some way and it is bellow,

#!/bin/bash
#
# chkconfig: 2345 85 15
# description: epic tle
# processname: epictle

[Code].....

I have written simple script (sh) to run jar file and I'm using bellow code for putting it as background

sh /opt/EpicTle/tle/run.sh >/root/.epicline/logs/debug/console.out 2>&1 &

I want to change 'console.out' file per day with date name rather than going with one file

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved