Displaying 20 results from an estimated 5000 matches similar to: "Migrating CentOS 5 -> 6: where to put /etc/inittab respawn scripts?"
2011 Jun 02
2
Restarting a Perl-script (socket daemon) from /etc/inittab
Hello fellow CentOS sysadmins,
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 TCP-sockets and forks
only once - at the startup by calling this method:
    sub daemonize {
        die "Can not
2012 Jan 20
1
Setting From address for cronjob mails (because Gmail rejects)
Hello,
I have two identical CentOS 6.2 machines with
stock Postfix package and unchanged config:
# rpm -qa|grep post
postfix-2.6.6-2.2.el6_1.x86_64
# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
2016 Jun 24
1
haproxy + Apache + virtual hosts -> wrong host is displayed
Hello,
I hope my question is not off-topic here.
On CentOS 7.2.1511 I have installed:
haproxy-1.5.14-3.el7.x86_64
httpd-2.4.6-40.el7.centos.1.x86_64
The /etc/haproxy/haproxy.cfg binds HAProxy to
ports 80 and 443 and accepts HTTPS to slova.de:
defaults
    mode                    http
    option http-server-close
    option forwardfor       except 127.0.0.0/8
    option                 
2011 Apr 25
2
Samba can't access dir - SELinux problem?
Hello,
I was using CentOS 5.5 as a "playground" VM at my WinXP notebook
and now I'm migrating to a new CentOS 5.6 install
and everything has worked well - except samba.
I have this very permissive config to export my ~/src dir:
# cat /etc/samba/smb.conf
[global]
guest ok        = yes
guest account   = afarber
security        = share
hosts allow     = 172.16.6. 127.0.0.1
[src]
2010 Dec 17
1
Passing LD_LIBRARY_PATH through sudo
Hello,
I have a CentOS 5.5/64bit VM, where I only have sudo rights:
afarber          ALL=(ALL)       NOPASSWD: ALL
I'm trying to pass LD_LIBRARY_PATH
through sudo to install DBD::Oracle
( https://rt.cpan.org/Ticket/Display.html?id=63678 )
and have tried using "sudo -E" and also
changing these lines in the stock /etc/sudoers:
Defaults    !env_reset
Defaults    env_keep =
2010 Sep 29
5
Forbidden: can't access *.html files in /var/www/html
Hello,
I'm using the latest CentOS with phpBB 3.0.x + postgreSQL + sendmail
(relayed through gmail.com) - all those programs working fine,
with no big modifications of the CentOS defaults (i.e. SELinux is on).
Now I'm struggling with the seemingly simple problem, that when
I put an .html file into /var/www/html/ then Apache won't serve it.
In the browser I see:
"Forbidden
You
2014 Aug 11
3
Use postfix and spamd on CentOS 6 - looking for a shortest guide
Hello fellow CentOS-users,
on the net there are lots of Spamassassin related HOWTOs - describing how
to create a shell script for Postfix and how to install Spamassassin and
start its spamd daemon - step by step. Additionally antivirus setups are
described...
But I have a strong feeling, that this is unneeded on CentOS 6 - because
there are already preconfigured stock packages for postfix and
2012 May 26
2
CentOS 6.2: suspending vim with ctrl-z and resuming with fg - stopped working
Hello,
pardon my chaotic question, but does anybody have an idea,
why can't I suspend vim-enhanced-7.2.411-1.6.el6.x86_64
with a CTRL-Z, then execute few commands at my bash prompt
and then get back to the vim session again with "fg"?
It has stopped working at my CentOS 6.2 machine (I haven't
noticed exactly when) but works fine with CentOS 5.x.
I'm using PuTTY to login to
2016 Jun 21
4
Redirecting port 8080 to port 80 - how to add in /etc/sysconfig/iptables file?
Hello Gordon and others
On Tue, Jun 21, 2016 at 4:13 PM, Gordon Messmer <gordon.messmer at gmail.com>
wrote:
> On 06/21/2016 02:30 AM, Alexander Farber wrote:
>
>> -A PREROUTING -p tcp -m tcp -d 144.76.184.154/32 --dport 80 -j REDIRECT
>> --to-ports 8080
>>
>
>
> I think you have the ports backward, here.
>
here the problem description again:
I have
2009 Nov 18
1
Removing respawning process from inittab w/o killing it
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi list,
I need to remove an entry of inittab which is used to (re)spawn a process:
mydemon:2345:respawn:/usr/sbin/mydemon >/dev/null 2>&1
So, I would comment out that entry and reload init running ``telinit
q''. IIRC, this would lead to the currently running daemon being killed.
I don't want to /try/ whether I'm right, as
2016 Jun 21
2
Redirecting port 8080 to port 80 - how to add in /etc/sysconfig/iptables file?
Hello again,
unfortunately the following /etc/sysconfig/iptables file does not work:
*nat
:INPUT ACCEPT
:OUTPUT ACCEPT
:PREROUTING ACCEPT
:POSTROUTING ACCEPT
#-A PREROUTING -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8080
-A PREROUTING -p tcp -m tcp -d 144.76.184.154/32 --dport 80 -j REDIRECT
--to-ports 8080
COMMIT
*filter
:INPUT DROP
:OUTPUT ACCEPT
:FORWARD DROP
-A INPUT -m state --state
2016 Jun 20
3
Redirecting port 8080 to port 80 - how to add in /etc/sysconfig/iptables file?
Good evening,
on a CentOS 7 LAMP (not gateway) dedicated server I am
using iptables-services with the following /etc/sysconfig/iptables:
*filter
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [294:35064]
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -p icmp -m icmp --icmp-type any -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp -m
2013 Apr 16
1
inittab - huh what's it good for?
We run a CentOS-5 based hylafax server with external serial modems. We
are transitioning to an Asterisk system using IAXmodem running on
CentOS-6.
On the CentOS-5 system to start the fax modems we added these lines to
inittab:
# Add fax lines and always ALWAYS run "telinit q" after making a change.
fax1:2345:respawn:/usr/sbin/faxgetty ttyS0
fax2:2345:respawn:/usr/sbin/faxgetty ttyS1
2008 Nov 12
0
guest inittab problems
We have several suse 10.3 guests running in paravirtualization, however
all the guests boot with the following messages:
	Loading keymap Couldnt open /dev/tty1
	Loading /usr/share/kbd/keymaps/i386/qwerty/us.map.gz
	failed
	Loading compose table latin1.add
	failed
	Start Unicode mode
	Couldnt open /dev/tty1
	Couldnt open /dev/tty2
	Couldnt open /dev/tty3
	Couldnt open /dev/tty4
	Couldnt open
2009 Oct 09
0
/etc/inittab not loaded properly
hi, im new here.
we have servers with centos 4. yesterday one of it crash and cold rebooted.
reboot process run well until finally we found that some of
/etc/inittab configurations doesn't loaded properly, like no virtual
terminal available and svscanboot not executed.
i assumed that these configurations not loaded:
# Run gettys in standard runlevels
1:2345:respawn:/sbin/mingetty tty1
2009 Jul 07
1
Init checking for processes that are configured to "respawn"
Hi folks,
I have a sophisticated question for which I can't find any hints on the 
web:
If you configure init (via /etc/inittab) to respawn processes (like the 
getty processes) when they exit - how often does init check for the 
existence of such a process? Does it check actively at all or does it 
rely on some kind of inter process communication?
I am not a programmer, so maybe the second
2009 Feb 14
1
Asterisk CLI problem if run from /etc/inittab
Hi,
We are having a strange issue. If we run asterisk from /etc/inittab
and then connect using asterisk -r, we don't see any logs coming in
CLI. However logs are properly reported to /var/log/asterisk/messages
and system is working fine. Now, if we run from command line (asterisk
-f) and then usie asterisk -r, we properly see logs in CLI. This is
bit strange and not able to solve this
2008 Dec 11
6
yum-updatesd or similar for CentOS 4
Hello,
we have enabled yum-updatesd on our dozen real
and virtual machines running CentOS 5.2 some time
ago and are very satisfied:
afarber at ablsw01:~> grep -v ^# /etc/yum/yum-updatesd.conf
[main]
run_interval = 7200
updaterefresh = 1200
emit_via = email
dbus_listener = no
do_update = yes
do_download = yes
do_download_deps = yes
(it would be good to make it use the proxy though...)
My
2001 Jan 04
2
Patch to allow openssh-2.2.0-p1 to be started from /etc/inittab
The following patch allows OpenSSH 2.2.0-p1 to be started (and managed)
from /etc/inittab (by "init") on systems which support that. This is
useful when you *really* want SSHD to always run since it will be
automatically restarted by "init" if it dies (and if "init" dies the
the systems dies :-).
I use a line (in /etc/inittab) like this on Solaris systems:
 
2016 Jun 21
2
Redirecting port 8080 to port 80 - how to add in /etc/sysconfig/iptables file?
On Tue, 2016-06-21 at 15:46 +0100, Always Learning wrote:
> On Tue, 2016-06-21 at 16:24 +0200, Alexander Farber wrote:
> 
> > *nat
> > :INPUT ACCEPT
> > :OUTPUT ACCEPT
> > :PREROUTING ACCEPT
> > :POSTROUTING ACCEPT
> > -A PREROUTING -p tcp --dst 144.76.184.154 --dport 8080 -j REDIRECT
> > --to-port 80
> 
>