CentOS 5 :: Chkconfig Vs. Update-rc.d?
Feb 24, 2010
I'm trying to bring up a server on CentOS5 -- working from Debian instructions.
I've just installed postgres and an init.d script postgres8-2.4. My Debian instructions next tell me to execute:
update-rc.d postgresql-8.4 defaults
...which doesn't work on CentOS.
Searching Google, I see that I should use chkconfig instead. But it doesn't work either. My guess is that I to add code to the init.d file, but what?
View 4 Replies
ADVERTISEMENT
Feb 1, 2010
i am trying to add a script on rc6.d using chkconfig but it doesn't work. I am missing something but i dunno what. I try with a test script /etc/init.d/test cat test
#
# test test
#
# Author: Maurizio Marini
#
# chkconfig: 2345 98 02
# description: this is a test
[Code]...
View 8 Replies
View Related
May 16, 2011
I want to be able to create a service so that the bash script will run every time the server boots up.
I am running CentOS 5.
I have been reading about chkconfig and creating a file in /etc/init.d for chkconfig to handle but I cannot seem to get it to work whenever I 'chkconfig servicename on' and then 'service servicename start'
When I do chkconfig --list my service is listed there.
Can someone provide me with a sample of the file I need to create in /etc/init.d and how to get everything running?
View 2 Replies
View Related
Sep 12, 2010
I want to start my conky while system boots. what i am getting is:
[Code]....
View 2 Replies
View Related
Mar 8, 2010
I've just created a new chkready script. but on trying to add it will the following command I get an error:
Code:
$ chkconfig --add languagetool
service languagetool does not support chkconfig
PS: Just learned how to write a chkconfig script.
View 5 Replies
View Related
Jun 17, 2010
I want to write init.d script, I find some material (It will be wonderful, if you will give some more materials to read) and i have nice script, but it says
Code:
service test_script does not support chkconfig
Where I can read about how to add chkconfig support to the script?
View 3 Replies
View Related
Nov 15, 2010
I want dovecot to start at boot and I can't seem to get this to work.Initially, I installed chkconfig and tried to run "sudo chkconfig dovecot on". This generated a whole bunch of errors about upstart and insserv not getting along properly. I patched chkconfig according to a post on this page:URL...
View 5 Replies
View Related
Feb 20, 2011
How do i disable kudzu without using chkconfig?
Code:
/sbin/chkconfig --level 3 kudzu off
Is there any other way of doing it .
for example by modifying parameter of any file.
Basically i want kudzu to be disabled during the first run of the machine after installation. I have full access to the filesystem without starting the machine(its a virtual machine).
View 10 Replies
View Related
Feb 18, 2011
Usually I use LINUX and I can set the running scripts under /etc/init.d and I can check this with 'chkconfig'. But now by Solaris I got "chkconfig: not found"
View 2 Replies
View Related
Jan 9, 2009
I found and modified the following file. It starts JBoss just fine. However, chkconfig refuses to --add it - saying the file doesn't support it.
its in /etc/init.d, root:root, rwx,rx,r and the first few lines...
#!/bin/sh
# chkconfig: 345 100 25
# description: JBoss App Server
# processname: jboss
[Code]....
View 9 Replies
View Related
Mar 11, 2010
doesn't the chkconfig command exists for ubuntu? or is it only for red hat systems?
View 9 Replies
View Related
Aug 31, 2010
I'm on a CentOS server and for the past hours I have been trying to unsuccessfully make a script that will start a binary and keep it running if anything goes wrong with it.
This is what I have:
Code:
#!/bin/bash
# counter daemon
# chkconfig: 345 20 80
# desc: counter daemon
[Code]...
Does anyone know how I can make the script start my application?
View 7 Replies
View Related
Aug 12, 2010
I am trying to configure rsh on..but it comes up with a error message error reading information on service -rsh...
when i query rpm -q rsh..It displays rsh package..
View 1 Replies
View Related
Nov 22, 2010
How would you use chkconfig to set the bigd daemon to start at runlevels 2 & 3?
View 3 Replies
View Related
Oct 7, 2010
I have a question regarding the user that chkconfig runs as. My chkconfig script calls some other scripts to start up a tomcat instance. But the secondary scripts use %JAVA_HOME and for some reason the user it's running under doesn't have that defined. I can call the scripts directly as the root or as another user and it works properly. But I added an echo in the script and when chkconfig calls the script it has a much smaller $PATH and no $JAVA_HOME.
View 3 Replies
View Related
Jul 26, 2011
On two Centos5 servers, yum gives a segmentation fault error when trying 'yum update' or 'yum check-update' after running 'yum clean' :
[Code]....
The error is the same for the other computer except while attempting to update the rpmforge repository. Nothing has really changed on the servers in some time and 'yum update' worked fine on each yesterday and I have no idea why they would both suddenly fail!
View 3 Replies
View Related
Sep 24, 2009
For some reason, when I do a yum check-update I get a list of no changed packages to install. If I follow this immediately with a yum update then it tries to install drbd83. I've tried a yum clean all and repeated the commands and get the same thing. This happens on both the machines that are set up to use DRBD. Just seems weird and I don't understand. Anyone got an explanation?
[root@here]# yum check-update
Loaded plugins: changelog, downloadonly, fastestmirror, priorities, protectbase,
: security
Loading mirror speeds from cached hostfile
* epel: www.mirrorservice.org
* base: mirror.sov.uk.goscomb.net
[Code]...
View 12 Replies
View Related
Jul 13, 2010
I have a error when i want to update my system via YUMI execute the next command.sh@ yum -y updateYou could try using --skip-broken to work around the problemYou could try running:package-cleanup --problems package-cleanup --dupes rpm -Va --nofiles --nodigestThe program package-cleanup is found in the yum-utils package.
View 5 Replies
View Related
Jan 8, 2010
F10 trying to key in static ip address. Have followed guidelines on turningoff NetworkManager and turning on network. i went to command line and did a couple of chkconfig things and entered ip address, with subnet. when i do ip addr show i see under eth0 inet 192.168.3.11/32 which is 255.255.255.0, i'm pretty sure. i do not see gateway. when i go to system/network get prompted to log into root, network config window opens. icheck eth0 and the subnet mask is 192.168.3.1, the gateway, which is in correctly, in the gateway slot, as well. i still can not ping to from my xp based multihomed router.
View 3 Replies
View Related
Oct 22, 2009
Just checking to be sure. 5.3>5.4 update went without a hitch:) But a message ran about (/etc/yum.repo.d) CentOS-Base.repo.rpmnew. Comparing CentOS-Base.repo with the new one show the 1st has the correct priorities and .rpmnew does not have the correct priorities. Should I remove the *.rpmnew repo after making sure it otherwise is the same as the original CentOS-Base.repo?
View 1 Replies
View Related
Mar 17, 2010
I am an old days RH release user(from 6.x) and just switching back from Debian/Ubuntu to CentOS on some servers, but I can not understand the kernel update strategy currently enabled in CentOS.There are two boxes, with almost identical installation, but recently there was an auto update of kernel on one box. This auto update also seems to issue an auto reboot on the machine, which is unacceptable on server machines.
View 2 Replies
View Related
Oct 24, 2009
After some testing for a couple of days, I decided to take the plunge and update all my 5.3 machines. Using the recipe from the release notes:
yum clean all
yum update glibc*
yum update yum* rpm* python*
yum clean all
yum update
shutdown -r now
I updated some guinea pigs that I had physical access to and didn't have any issues. So I remotely updated a small farm of LAMP machines that handle a couple of million page views per day. It took each machine approximately 5-6 minutes to download/install/reboot.
View 1 Replies
View Related
Oct 29, 2009
I just ran a "yum update" on my CentOS 5.3 system. After a reboot, I noticed /etc/redhat-release show CentOS 5.4.
I thought yum upgrade was supposed to do that?
I wanted to simply patch my CentOS 5.3 system without turning it into CentOS 5.4 ... YET.
View 1 Replies
View Related
Feb 6, 2009
I've installed Centos 5.0 in my system, and I want to know how to un-install an update or package in Centos via Command Line ?
View 1 Replies
View Related
May 21, 2009
I have centos 5.3 workin on mini itx atom 330. i have some problem with the network when i use Samba. when i move big files the network goes down. i wanna to install the new kernel on my centos to try to fix the network problem with the new drivers includes on the new kernel.
View 2 Replies
View Related
Jan 30, 2010
I have a CentOS server in one of my labs at work that does not have an Internet connection.Is there anyway that I can download the updates on a USB stick and then update the server? If so, what are the procedures?
View 1 Replies
View Related
Feb 8, 2010
Is it possible to do an update from fedora to centos without losing everything? in paticular I would like to keep the users and openvpn-as configuration.
View 5 Replies
View Related
Sep 10, 2011
I applied the Kernel update that showed in the updater via the GUI.It now won't boot anymore.Memory for crash kernel (0x0 to 0x0) notwithin permissible range.WARNING calibrate_APIC_clock: the APIC timer calibration may be wrong.
View 2 Replies
View Related
May 21, 2011
what happens if "#chkconfig --level 345 dhcpd on a network with existing DHCP server"
View 2 Replies
View Related
Jan 7, 2010
list the 'chkconfig --list' in alphabetical order
View 3 Replies
View Related