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.
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?
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.
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?
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?
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...
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).
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"
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
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?
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.
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.
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?
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?
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.
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!
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.
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