Server :: Creating An Initscript That Chkconfig Identifies?
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
ADVERTISEMENT
Dec 9, 2010
I have a recent install of Fedora14, and wanted to have outbound email sent to a smtp server elsewhere on the local network. I found the System->Preferences->Email Settings app and created a mail account with an smtp server. Now I am able to use mailx, mutt, and sendmail -- all send email correctly to the external server.
But I don't like being reliant on the GUI apps and wanted to know how this was done -- what system config files were affected. Assuming that my "smtp.xxx.com" server should show up somewhere, I grepped /home, /etc, and /var, but can't find it anywhere. On a whim I went into Evolution, deleted the mail account, and rebooted, but email STILL works. Where is this configured?
[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
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 21, 2011
Is there an app that you can run before installing a new package etc and then after the install that will show you all the changes that occurred on your system as a result of installing the new package?
View 9 Replies
View Related
Sep 16, 2010
For the RED5 Server is a Initscript available. But with this script the service runs as root. I am a novice with Scripting
#!/bin/bash
# For RedHat and cousins:
# chkconfig: 2345 85 85
# description: Red5 flash streaming server
# processname: red5
[code]....
View 3 Replies
View Related
Mar 4, 2011
I have installed dhcp3-server via apt-get install dhcp3-server, but I couldn't find any initscript. So, how can I start and stop it properly ?
For now , I have added "dhcpd" line in rc.local.
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
Jul 20, 2011
I'm trying to increase hard and soft limit of nofile kernel parameter by putting the following initscript into /sbin
Code:
PATH=/bin:/sbin:/usr/bin:/usr/sbin
export PATH
# Increase the hardlimit for open files
[Code].....
But the limits still don't change as if the script is not run during startup.
View 5 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 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
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
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
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
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
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 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
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
Sep 2, 2010
how can we achive more than 8TB size for one LUN.?I am getting following error..
[root@storage ~]# mke2fs -j /dev/VG01/data
mke2fs 1.39 (29-May-2006)
mke2fs: Filesystem too large. No more than 2**31-1 blocks
(8TB using a blocksize of 4k) are currently supported.
View 5 Replies
View Related
Mar 15, 2010
The last weeks i have searched the internet for a server appilication like LogmeIn. A tool that will allow remote access, even if you are behind a Firewall or proxy. Your screen will be send out to my server, that will send it on to me. There has gotto be some free or opensource server tool for this? If there is no server appilication, how much will it costs to create such a program?
View 2 Replies
View Related
Oct 4, 2010
Im creating a PHP application for my company. The application its going to be used by around 500 people in the network. I've always used Windows Server for my PHP applications, but I want to start using linux. I've heard its faster and more secure.
I want to knwo, what type of computer should I use? Is does linux work better on Intel Xeon or AMD? I need the application to work fast.
Am I going to have any problems with incompatibility if I get a Dell server?
I've used Ubuntu, just to check it out, but I've heard Centos is better for web servers, is that true?
View 2 Replies
View Related
Jun 2, 2009
I am using Fedora 5 (I know it's out of date), and I want to create a web mail server.
View 3 Replies
View Related
Apr 24, 2010
I'm new to the world of networking. Actually, I'm trying to change my desktop which has enough horse power to run heavy applications in to a server such that I may access it as a source safe server remotely (over the internet). I carry my laptop along all the times and would like to continue my development work when I find free time. I tried to find some help on google but was confused on which to follow and where to begin from.
View 3 Replies
View Related
Mar 31, 2010
how to set up a fake ROOT dns that I would be using inside my virtual test environment with private address range. Basically, I want to create a ROOT server that will only contain information to two separate dns servers that are authoritative for its respective domains/zones.
I can't seem to find anything on the net about this subject. Basically, how is a ROOT server configured and how should the fake hint-file for authoritative dns-servers be configured?
I want basically domain.xx and domain.yy to be able "find eachother" by using response from ROOT server. I know I could set up forwarders to respective domain on each of the virtual DNS server instead, but I want to experiment a bit the way I stated above - with a "real" (fake) ROOT server, if it is possible!
View 1 Replies
View Related
Aug 18, 2010
I want to create a VPN server using my Linux box that is running Lenny. I've googled and googled and tryed and tryed, and I havent been able to find something that will help me get it going. The server that I am running at the moment does not have a desktop installed as I don't need one. I access it through SSH.
So scenario that I have got and I want to incorperate is this:
I have a ADSL2 router that I want to port forward to my VPN server, and my VPN server has 1 physical NIC and a logical that I have pre-configured (Sub interface) thats on a different network. so this is what the IP configuration is:
192.168.0.1 (Router/Gateway)
192.168.0.254 (Linux Box/Proposed VPN server/eth1)
192.168.1.254 (Linux Box/Proposed VPN server/eth1:1)
192.168.1.253 (Windows Server that I can remote access to through the VPN)
I've looked at a few daemons that are available online for Linux. But I just can't figure out how to set it up properly. Perhaps someone who knows the best practices and pracedures when it comes to VPN with Linux that can pass there wisdom to me so I can note this down and keep it for later on.
View 5 Replies
View Related
Apr 26, 2011
I am using NFS to mount large LUNs from my SAN.I have one already setup and configured. I am adding an additional partition from the same SAN but I am confused on the setup. I know the LUN is connecting to my NFS server correctly because I see it listed in my /proc/scsi/scsi as an additional LUN. What I don't see is the drive being displayed in fdisk -l. I did notice one thing though, when I disable the host mapping from the SAN, my disk information changes from /dev/sdb TO /dev/sdc (see changes below)
Without host mapping to SAN:
Disk /dev/sda: 13999.0 GB, 13999026470912 bytes
255 heads, 63 sectors/track, 1701951 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
[code]....
View 2 Replies
View Related