General :: Create A Service Using Chkconfig In CentOS?
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
ADVERTISEMENT
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
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
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
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
View Related
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
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
Aug 2, 2011
I have just installed sendmailanalyzer to my centos 6 by using rpm package. But before, i tried to install it by perl.There is no problem now everything works but when i want to configure i see that there are lots of conf file. How can i see a conf file of service "sendmailanalyzer" what is the command ?
View 2 Replies
View Related
Nov 28, 2010
I am unable start network service on my centos box. /etc/init.d/network start device eth0 does not seem to be present, delaying initialization lspci | grep Ethernet
Doesn't show any results. It seems os doesn't identify my NIC. I am using compaq presario model pc
View 6 Replies
View Related
Oct 7, 2010
while starting xfs service on centos 5.3 shows error as starting xfs :mkdir:cannot create directory "/tmp/.font-unix':too many links
View 6 Replies
View Related
Oct 7, 2010
How to create cron tab when DSL line down set automatically restart the network service while DSL line up?
View 3 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 5, 2010
In centos 5.3 i am unable to start sshd service shows error starting sshd :/etc/init.d/sshd:line102"7182 illegal instruction $sshd$ option
Same error while starting the httpd service.
View 17 Replies
View Related
Dec 30, 2009
i want to start /usr/bin/brscan-key at startup. since i find it handy to push on the scan button , and the scanner is saving the scanned image to my pc.
can i add /usr/bin/brscan-key at /etc/rc.local on a safe way?
View 3 Replies
View Related
Nov 1, 2010
I installed privoxy to use with tor however, it seems privoxy didnt create a pid file.I tried creating one many times with no avail. Ive reinstalled many times and still have yet to get privoxy to run.When I try to start the service I get told:$ sudo service privoxy restartNo /var/run/privoxy.pid file found, exiting.Starting Privoxy, Failed.
View 2 Replies
View Related
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
Jan 20, 2011
I want to create a link to start apache2 service:
Code:
sudo /etc/init.d/apache2 start
I tried creating a launcher but it did not work at all
View 3 Replies
View Related
Oct 22, 2010
I've got a remote server running CentOS and I require a new user account who would have access to sftp & ssh functions.I've got a bit of a problem creating the user since whenever I try to login with the new account through ssh (putty) I keep getting access denied.I've made different accounts with userids above /below 500; even though I'm a complete noob so no idea how I'm supposed to go about this.
View 6 Replies
View Related
Aug 1, 2010
i wan to create ftp user id and password in centos , so that i can provide access to various director in www folder.
View 7 Replies
View Related
Jan 7, 2010
list the 'chkconfig --list' in alphabetical order
View 3 Replies
View Related
May 24, 2011
I am trying to create a partition using gparted for my centos installation but I accidentally deleted my partition table. my partition was created on windows7 and dual boot with ubuntu. I am trying to recover it using test disk with ubuntu live cd but after I recover it still I neither can't boot on windows or Ubuntu here is the result of patition quick seart
Quote:
Disk /dev/sda - 320 GB / 298 GiB - CHS 38914 255 63
Partition Start End Size in sectors
>D HPFS - NTFS 0 32 33 12 223 19 204800 [System Reserved]
[code]....
I tried to set up my partition characteristic like this
Quote:
Disk /dev/sda - 320 GB / 298 GiB - CHS 38914 255 63
Partition Start End Size in sectors
1 * HPFS - NTFS 0 32 33 12 223 19 204800 [System Reserved
[code]....
and still can't reboot on my win7 or ubuntu
View 1 Replies
View Related
Jan 29, 2011
How to install rpm service? I performed command
# yum remove sqlite
and it removed rpm and yum services, as well as many others. How to reverse changes?
View 17 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
Feb 7, 2011
I am in the task of migrating old linux to new linux which centos 5.5. while moving out all apps ,data etc.I need to configure SSL in apache.I have installed mod_ssl with apache 2.2. i went though some docs to configure with certificate that I have . Not sure how to start the service in 2.2. The apache/SSL was configured in my old server which apachectl. SO after importing certificatr , I do ./apachectl startssl to take in effect. In my new server , the http service is /etc/init.d/httpd, not sure how to start SSL service in centos 5.5.
[Code]...
View 2 Replies
View Related
Mar 17, 2009
I have a script in /etc/init.d that starts when the machine boots up, but doesn't stop when the the machine shuts down.This simple script recreates the problem. It just logs when the 'testservice' is started and stopped. When the shutdown -h now command is run, it should be called with the 'stop' parameter shouldn't it?
# Att /etc/init.d/testservice
#!/bin/sh
#
[code]....
View 12 Replies
View Related
Jun 3, 2010
I have a webservice which runs under Apache Tomcat. The service is started via a script in /etc/init.d. During the course of the Web service processing, the software must make use of the two NVIDIA GPUs on the computer to do some graphics processing. When this system is booted but not logged in, the web service is accessible but the software cannot access the software cannot access the X server to do it's processing. However, when I am logged in, the user can access the X servers and run correctly. I have tried various solutions but I always have to be logged in to run the software. I seem to have permissions problems but I'm unsure how to resolve them
Is there any way to grant permissions to root (the tomcat service is started as root) to allow it to run the software without logging in?
I am running CentOS 5.4 with Gnome display manager.
View 4 Replies
View Related
Aug 9, 2010
I been trying to install the Nvidia driver for my recently installed centos desktop but I could not find the services that I can stop. I have a gnome. did try gdm, xdgm etc etc but no luck how do I stop the x server service ? so that I can install the driver.
View 3 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 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