CentOS 5 :: Can't Get Script To Run On Startup?

Jun 4, 2011

I have placed a script I would like to run on starup in /etc/init.d and created symbolic links to that file in /etc/rc3.d and /etc/rc5.d but it doesn't run on startup.Is there something else I need to do to get this to work?

View 13 Replies


ADVERTISEMENT

CentOS 5 :: GDM Delay At Startup?

Mar 5, 2010

I'm having a problem with GDM very similar to the one described in the thread below, though they did not find a solution.

[URL]

Basically when I boot the machine I first see the terminal login, then after a moment I get what looks like some graphical corruption followed by GDM appearing.

I've already attempted reinstalling GNOME and X, then manually reinstalling GDM, but none have solved the problem. I'm currently in the process of enabling boot logging as described in the thread, so I'll post that soon.

View 11 Replies View Related

CentOS 5 :: Add Command On Startup?

Aug 11, 2010

I have CentOS 5.5 with no GUI. How do I enable commands/scripts to run on startup when the server is rebooted?

View 2 Replies View Related

CentOS 5 :: Disabling IRQ #169 On Startup ?

Apr 8, 2011

I've run into this problem this week. The other night a power supply failed on a different system and appears to have surged the UPS which it and some other computers were plugged in to. One computer was fine, but the RAID server that is used for backups ended up with a bad disk and this "Disabling IRQ #169" message now shows up during boot, right after starting udev and setting the hostname. The system then sits there for 3-5 minutes before repeating a scroll of "/etc/rc.d/rc.sysinit: line 966: /bin/usleep: Input/output error"

I have booted with linux recovery from the CentOS DVD in order to replace the drive that was damaged. I rebuilt the raid array and all the data seems to be fine. There is another message though after "Red Hat nash version 5.1....." no raid disks and with names: "isw_bf jihdchhi_Hostname" failed to stat() /dev/mapper/isw_bf jihdchhi_Hostname

I was considering doing a complete reinstall of CentOS but if there is another solution I would much appreciate it, is it perhaps an issue with Grub not being able to find the updated array? As it is, it is impossible to boot the system except for using a live CD to do it.

View 12 Replies View Related

General :: Run A Script On CentOS Startup ?

Jul 12, 2011

I put one script in /etc/init.d/abc.sh. Now I want it to run at startup.

How can I do that with chkconfig?

chkconfig --add abc.sh

But I am not sure how it works.

View 2 Replies View Related

CentOS 5 :: Not Getting To Startup Screen After 5.4 Update

Dec 16, 2009

This system has been centos 5.2, 5.3 and now after an update ( through yum ) to 5.4 i can't get to the startup screen. System was a barebones kit with ASUS P5Q-E motherboard, WD-500gb sata, Intel Processor

After the update I get:
BIOS Bug MCFG area at e0000000 is not E820-reserved
NOT Using MMCONFIG

I get to the part that says: press "i" for interactive startup ... starting "udev", then nothing. Just black screen. I followed other recommendations and loaded the lastest BIOS onto the motherboard, but the issue still persists. I'm also not able to boot any of the older kernels through the grub menu. Not sure where to go from here since I can't boot into anything.

View 6 Replies View Related

CentOS 5 :: Run Synergy On Xserver Startup

Apr 8, 2010

i use centos 5.4 with kde and i want to use synergy at kde-logon screen.i 've modify Xsetup and Xstartup Files but synergy wont activated.In which files does need to be modified?

View 1 Replies View Related

CentOS 5 :: S95saslauthd Error On Startup?

Sep 7, 2010

Hey when I start my CentOS 5.5 Final I always get this error on startup

/etc/rc.3/S95saslauthd: line 31: test : too many arguments

when I shutdown I get the same thing but /etc/rc.0/S95saslauthd: line 31: test: too many arguments

View 11 Replies View Related

CentOS 5 :: Doesn't Log Of All Startup Messages

Sep 22, 2010

After reviewing the dmesg log, I realize that it does not log all startup messages. Is there a way to configure it or another log to do so?

View 7 Replies View Related

CentOS 5 :: Starting The Firefox On Startup?

Dec 17, 2010

i want to start firefox on startup of my os.so i tried these commands:

ln -s /usr/lib/firefox-3.0.18/firefox /etc/init.d/firefox
ln -s /etc/init.d/firefox /etc/rc5.d/S99firefox

and then i restarted my pc i nothing happened.what should i do ?

View 3 Replies View Related

CentOS 5 :: Flashing Screen At Startup?

Apr 6, 2011

Ok, i'm sure this is really basic and it's probably been posted before but I have searched and can't find anything.

Long time linux user, first time with centOS

I am building a basic firewall system with ssh acces only, I only occasionally need gui/gnome access so I have sent my init level to init 3 in /etc/inittab.

My problem is during startup the screen wants to run the gui startup and for some reason the driver isn't quite right so it flashes the screen every time it starts a process and says [OK] because of this I miss 90% of the startup information.

I have already disabled the splash screen in /boot/grub/grub.conf and that did disable the grub splash screen but how can I disable the "centOS" spash stuff? I only want txt at startup, I don't want the system to do anything graphical until I type startx.

View 4 Replies View Related

CentOS 5 :: Startup Script Not Working?

Jul 11, 2011

I'm writing a script to automatically get my TEAMSPEAK3 server to run at startup.The script is like this and is placed at init.d and added too chkconfig.

#!/bin/sh
# chkconfig: 2345 95 20
# description: Starts Teamspeak 3 server

[code]....

View 9 Replies View Related

CentOS 5 :: Cancel A Frozen Startup Daemon?

Mar 25, 2009

I used my boot disk in rescue mode to solve this, but I would really like to know how to do this the easy way.

Question: when I am booting up and getting all those "OK" green remarks, how do I cancel a daemon that freezes instead of giving me an ok or failed? I have tried <Ctrl><C> with no joy. I have tried dropping to interactive mode ("I") and bypassing the bad daemon, but interactive mode freezes when I go to start GDM, so no joy there either.

View 15 Replies View Related

CentOS 5 :: Using KDE Screensaver Application In Gnome On Startup?

Feb 11, 2010

I am trying to get the KDE Media screen saver working in GNOME. Is there a way to use kde's screensaver program in gnome on startup, instead of gnome's screen saver program? Basically, I am trying to disable gnome's screensaver, and load kde's program in its place at gnome startup.

View 1 Replies View Related

CentOS 5 :: 2 Nodes Cluster Hang At Startup?

Feb 17, 2010

I have an annoying problem with a 2 nodes cluster that I don't understand.

One of my server is totally shutdown.

When I start cman after a reboot on the other server, it hangs on "Starting fencing...". The process which is actually hanging is : /sbin/fence_tool -w -t 300 -m 45 join

When I start this program manually, I get this output :

# /sbin/fence_tool -w -t 300 -m 45 join
Waiting for all 2 nodes to be members
Waiting for all 2 nodes to be members
Waiting for all 2 nodes to be members
Waiting for all 2 nodes to be members
(and so on...)

What I don't understand is why the fence_tool program wait for the 2nd node to join the cluster and don't fence the other node.

Here is my cluster.conf :

<?xml version="1.0"?>
<cluster name="ctpsrv-bdd" config_version="7">
<fence_daemon clean_start="0" post_fail_delay="0" post_join_delay="20"/>
<cman expected_votes="1" two_node="1"/>

[Code]....

Would it be a good idea to edit the cman startup script and remove the "-w" option of command fence_tool join, so the command do not hang up ?

View 4 Replies View Related

CentOS 5 :: Running A Script Automatically On Startup?

Aug 27, 2010

I have a script and I would like it to automatically run whenever the machine starts up. How can I configure it to do that? I am a complete Linux n00b.

View 2 Replies View Related

CentOS 5 :: (oracle 5) Error With Emerald At Startup

Mar 13, 2011

I would like to use emerald on oracle linux 5. I prefer this forum so I migrated to here! In fact, I already managed to import some themes in emerald, and to apply them, but after a reboot there was an error message (I don't remember it but I can retry to boot if you want), and my new emerald theme was not loaded, instead I had the default one, and when I launched emerald I wasn't able to import a new theme, there was no theme in the emerald window. so I tried to import one with the file manager by clicking on the "import" button, but in my home folder (/home/olivier) I had ... nothing : no file, no directory, yet there are still on the disk, I verified.

this seems an error of rights, but I don't know what to do. I must also specify that I have not already put "fusion-icon" in the list of the applications to launch at the startup, so I have to launch it after the boot (and it's what I did after the boot I spoke about above. I don't remember if I launched fusion-icon as "root" or "olivier"...

View 2 Replies View Related

CentOS 5 Networking :: Network Doesn't Run At Startup?

Mar 31, 2011

I have to type /etc/init.d/network start everytime after log in.I search little over internet and found out some command to fix it so i tried it but i got error response.Here is what i typed and what i got response.[root@winn ~]# system-config-netbootbash: system-config-netboot: comman not foundI also tried to find setting but i could not under Applications > System Settings > Server Settings > Network Booting Service.Also my ifcfg-eth0 files is below:

# Intel Corporation 82566DM-2 Gigabit Network Connection
DEVICE=eth0
BROADCAST=192.168.1.255

[code]....

View 5 Replies View Related

CentOS 5 :: Run Shell Script At System Startup?

Apr 28, 2011

I use CentOS 5.5 and I've trouble in run shell script after system reboot. That script runs jboss server and it looks that way:

#!/bin/sh
rm -R -f /opt/billing/jboss-6.0.0.M1/server/default/tmp/
rm -R -f /opt/billing/jboss-6.0.0.M1/server/default/work/
/opt/billing/jboss-6.0.0.M1/bin/run.sh -c default -b 0.0.0.0 -C /opt/billing/jboss-6.0.0.M1/server/default/lib/ > /dev/null &

I've created user account for jboss.

privileges of above script are okay. I've tried so far:

- add command to /etc/rc.local

- add script to /etc/rc3.d/ and create symbolic link to it in /etc/init.d/

- add run script by @reboot annotation in crontab (crond automatically starts with OS)

and jboss still sleeps after reboot. I've noticed that commands which remove directories seem to work when I've added them explictly to /etc/rc.local. But next command which runs jboss hasn't been executed.

View 4 Replies View Related

CentOS 5 :: Gnome-terminal: Run On Startup Applications?

Jul 23, 2011

I successfully created launchers for apps and I can run them in terminal with double clicking.Now I want them to run on startup, automatically. They run with arguments.There is System-> Preferences -> More Preferences - > Sessions - > Startup Programs where I can add my commands.I put:

gnome-terminal -e "/some_path/myapp1 -arg1 - arg2"
gnome-terminal -e "/some_path/myapp2 -arg1 - arg2"

View 3 Replies View Related

CentOS 5 :: Set A Startup Application After GNOME Login?

Sep 16, 2011

Centos 5.6 - I'm trying to lock the screen immediately after successful gnome user login. My steps...

System > Preferences > More Preferences > Sessions > Startup Programs tab > Add

I've tried the following...

gnome-screensaver-command --lock
/usr/bin/gnome-screensaver-command --lock

Neither of these seem to work from the Sessions gui. Although from terminal I can run gnome-screensaver-command --lock with no problems.

View 5 Replies View Related

CentOS 5 Server :: Make Script Executable On Startup?

Aug 27, 2010

I'm trying to execute script (java,php) on startup....before this we set it in /etc/inittab and it works find, but lately i found that the php script not startup as usual after we do yum update( although java script still run normally). code...

Another thing i want to ask is, if i have more scripts to run at startup, what should i do becoz there is limited terminal that i can use.
Someone told me that i can:

1)-put the script in /etc/init.d such that i can add it with chkconfig and run as service (not sure how to do this in details also)

2)-add a script in /etc/rc.local (not sure how?write what script)

View 6 Replies View Related

CentOS 5 Server :: Ntpd Startup Fails During Boot

Sep 1, 2010

ntpd startup fails during boot.Does startup just fine manually from command line once it's booted though. Any suggestions what I might adjust?

View 2 Replies View Related

CentOS 5 :: PHP Startup - Unable To Load Dynamic Library

Mar 4, 2011

I recently upgraded to php 5.2 using the testing repository. All went well except for one extension.

root@clibweb2 ~]# php -v
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules//usr/lib64/php/modules/http.so' - /usr/lib64/php/modules//usr/lib64/php/modules/http.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP 5.2.10 (cli) (built: Nov 13 2009 11:44:05)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
[root@clibweb2 ~]#

I tried:
[root@clibweb2 ~]# ln -s /usr/lib64/php /usr/lib/php
Adding the complete path to php.ini
And using PECL
I still get the error.
Output of
getinfo.sh (general) is at [URL]
The Package specific is at [URL]

View 1 Replies View Related

General :: Disable Boot / Startup The Clamav On Rhel / Centos?

Feb 22, 2010

how to disable boot,startup the clamav on rhel/centos.

View 1 Replies View Related

CentOS 5 :: Make Tomcat Startup At Boot As Non Root User?

May 4, 2009

Can anyone tell me how to make this script,( located in /etc/init.d/tomcat ) startup at boot time under the tomcat user and not the root user?

#!/bin/bash
# tomcatStartup Script for Tomcat
# chkconfig: 2345 20 80
# description: Tomcat Server basic start/shutdown script
# processname: tomcat
# pidfile: /var/run/tomcat.pid

[Code]...

View 5 Replies View Related

CentOS 5 Hardware :: 3 Sata Hard Disk System Can Not Startup?

Feb 18, 2010

server is :intel 5000p ,2gX4 ram ,cpu 5405 X13 sata sda 500g sata use for system rootfilesystem primate mastersdb 500g sata use for data filesystem second mastersdc 500g sata use for data filesystem second slavebios set use enhance and ide i install centos5.4 x86_64 on sda when i install system on sda, sdb and sdc is offline.after system install sucess ,poweroff and add sdb and sdc when system kernel start report ata0 error or ata1 error. exp XXXX (rydy).but when only add sdb or sdc ,system can startup and use all service ,exp vncserver ,kvm,pptp..

View 2 Replies View Related

CentOS 5 Server :: Httpd Daemon Not Active On Startup - No Errors?

Oct 31, 2010

I've added httpd to runlevels 2-5 using chkconfig, and also double checked it using ntsysv, but it still won't run on startup, even though it works just fine when started manually (using "sudo service httpd start").The results of "chkconfig --list httpd" show it is on for levels 2-5, and I've confirmed the current runlevel to be 3. I've found no errors in the logs (neither Apache's nor the system's), but maybe I'm looking at them wrong...My machine is a VPS (on VMWare) running CentOS 5.5 32bit. For additional information, see the output of getinfo.sh: http://pastebin.centos.org/35570I would greatly appreciate help on this, as it is delaying our NGO from moving servers.

View 3 Replies View Related

CentOS 5 Server :: Start X At Startup Without Running Login Screen?

Jan 12, 2011

I am setting up a CentOS server that has no screen connected, and only has 2 Tesla cards. I have created a minimal xorg.conf and xinitrc file that doesn't load mouse or keyboard, and only creates two screens, one for each card at 320x200x24 bit. This is so I don't waste VRAM on a framebuffer I can't see.

I modified the xinitrc to just load tdm and nothing else as GNOME is a RAM hog. I am then using this setup to render stuff offscreen using OpenGL into FBOs which I read back to CPU and process. Currently for development I just run startx& when I login. I now want to know how to set x server to start automatically at boot. The CentOS docs say that it will try to load the GNOME login manager. The thing is that I don't want a login manager as it is useless as I login remotely via SSH.So:

1 - how to enable automatic x server in CentOS (im used to Ubuntu so not sure how to do this on Red Hat variants)

2 - leave x server running without starting login manager

View 8 Replies View Related

Programming :: Script To Check Startup For Start Restart Stop Centos?

Jun 16, 2010

I have startup scriptsI want to test themI need a script to do the followingstart restart stop for 100 times (or i can set how many cycle)

View 1 Replies View Related







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