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


ADVERTISEMENT

Fedora :: Make A Executable (application/x-executable)

Aug 21, 2011

I hope this post stands in the right section.I have a commandline i need to enter in terminal when i want to run a program. i tought lets put that piece of command in an .sh file and just click the file to run the program (then i dont need to open terminal first an give in the command) however the .sh file does not open the program. so i propably need to make a executable (application/x-executable).

View 3 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

Ubuntu :: How To Make A File Executable

Jan 23, 2011

I use wine to execute my games. Now it says all the exes are unexecutable.I'm not very use to ubuntu

View 9 Replies View Related

Ubuntu :: Cannot Make The File Executable?

Mar 22, 2011

It so happens that some files that I am trying to make executable by chmod +x <filename> or otherwise are not becoming executables, rather the tick mark on the option is removed the very instant I put it on . Is there any thread of virus or any other reason for this.

View 5 Replies View Related

Ubuntu :: Cant Make Files Executable?

May 28, 2011

I cant make files executable anymore.using chmod or from file properties.. it isn't working.
AS far as I remember, I didn't make any changes in the user settings and my account has the administrator rights. For an un-executable file, say a jpg or a txt, it can be done.but doesn't happen with a .sh, .py or any other xecutable. chmodi-ing shows no error, but the file isn't executable. Through the GUI, when I check the box , its immediately unchecked again.

View 2 Replies View Related

Ubuntu :: Cant Make A File Executable?

Jun 16, 2011

I downloaded eclipse from the eclipse site..i had to make the main eclipse file executable..but i cant do that..when i click on "Allow executing file as program"..the tick disappears in a second..

View 9 Replies View Related

General :: Make A File Executable And Then Run?

Jan 24, 2010

I have created a file named as pm under the path /home/ppp/ i.e. /home/ppp/pmTo make it executable, I've used command: chmod a+x /home/ppp/pm while residing in root directory.But while trying to run from root by typing ./pm or within the directory /home/ppp, it was displaying that directory not found.Please help by providing the step by step procedure, so that I would be able to run my file from root or from the directory.

View 3 Replies View Related

Software :: Make A Bin File An Executable?

Mar 11, 2010

I have downloaded google earth in a bin file but I don't know how to convert it into an executable file

View 6 Replies View Related

CentOS 5 :: Make A Folder Downloadable From Centos Server?

Aug 5, 2011

Im running cent os 5.5 64 bit. I simply want to type in a url (In my browser) on my windows desktop, that downloads a zipped folder from my cent os server.

View 2 Replies View Related

CentOS 5 :: Booting CentOS V5.2 Fails With GRUB Error 13: Invalid Executable Format?

May 5, 2009

I'm trying to install a dual booting machine with OpenSUSE v11.1 32bit and CentOS v5.2 64bit. I installed OpenSUSE first and allowed it to install and configure grub in the MBR and after that I wanted to proceed with CentOS v5.2. The installation went fine with two notable exceptions:- when I had to configure grub installation parameters, CentOS offered me only 2 solutions: either install it on the MBR of the first hard disk or not installing it at all. Other distributions are more flexible allowing you to install it in the boot sector of the root partition for example. Because I didn't want to ruin the existent grub onfiguration, I reluctantly accepted not to install it for CentOS assuming that I could manually configure the entry later in grub's menu.lst file.

- when I was presented with the options for software components installation, I've clicked on virtualization category/function because I intend to use the machine as a VMware host. There was no guidance on screen at that point and I blindly assumed that by choosing the virtualization function I would get necessary tools and drivers that will help me further on. It seems that this was a wrong move as you can see it below.

After completing the installation, I tried to search for a template or guiding on how the menu entry in menu.lst should look like but the grub directory was empty, not surprisingly because I've told CentOS earlier not to install it. Using the files in the /boot directory from the CentOS installation I tried to improvise a menu entry but it's not working. The boot stops with famous Error 13: Invalid or unsupported executable format. Using the file command to check what kind of files I'm trying to load as kernels I'm getting :

marte:~ # file /mnt/vmlinuz-2.6.18-92.el5xen
/mnt/vmlinuz-2.6.18-92.el5xen: gzip compressed data, from Unix, last modified: Tue Jun 10 19:20:51 2008, max compression

[code]....

View 2 Replies View Related

Debian :: How To Make Executable Firefox Appear As Application

Feb 15, 2016

I downloaded the tar file form mozilla's website, in which I must click the firefox executable in order for it to run

I'd like the firefox logo to appear in my apps, how do I do it? I already moved the firefox folder to /opt

View 2 Replies View Related

Ubuntu :: Make Executable .sh Files Run Automatically?

Feb 19, 2010

How do you make executable .sh files run automatically without prompting me on whether I want to Run in Terminal, Display, or Run?

View 1 Replies View Related

Ubuntu :: How To Make Script Files Executable

Jun 1, 2010

I would like to make lisp files executable. Ie. i can go like this on the command prompt

./hello.lisp

and it would invoke a .sh script on hello.lisp which would cause the file to execute.

View 5 Replies View Related

Ubuntu :: Make Installation File Executable?

Jul 3, 2010

I have downloaded the file "bitnami-wordpress-3.0-0-linux-installer.bin", it's a Wordpress stack, with PHP and apache and whatnot.. I am asked to make it executable using "chmod a+x <installer file>"what do i do? cd to where it is, and "chmod a+x <bitnami-wordpress-3.0-0-linux-installer.bin>"?and if yes, i just double click on it afterat to run the installation?

View 9 Replies View Related

General :: Firefox 4 - How To Install It And Make Executable

Feb 20, 2011

I've downloaded firefox 4.0b11.tar.bz2. How should I install it and make executable?

View 7 Replies View Related

General :: Chmod Make Any File Executable?

Feb 23, 2011

can chmod make any file executable?

View 4 Replies View Related

General :: Make A File A Executable Program ?

Dec 21, 2009

How Do I make a file a executable program ?

View 3 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 Server :: Make A Choice For A Server With CentOS?

Nov 12, 2010

I wish a easy server with CentOS. I need only: ssh, ftp for backup , sftp for over the web, apache2 php5 mysql webserver, easy install printserver for a laserprinter with a com-port, and in the future a samba server. make a choice which version i need with CentOS. I am a beginner at all.I only know things about ubuntu server. I like to know the differences.

View 4 Replies View Related

CentOS 5 Server :: How To Make Awstats On Centos 5.5

Nov 19, 2010

Because I had some difficulties to make awstats running (I'm not an expert!), I would share my experience with a MINI STEP BY STEP GUIDE. I would like also to discuss some details with experts thus at the end of the guide ,I'll make some questions to them:

I have installed a new server Centos 5.5 32 bit and configured 3 virtual hosts; at the end of /etc/httpd/conf/http.conf I have:

-------http.conf virtual host--------
ServerName 127.0.0.1
NameVirtualHost *:80
<VirtualHost *:80>

[code]....

View 2 Replies View Related

Fedora :: Mupen64 Tried To Make Stack File Executable?

Apr 4, 2011

I tried to run Mupen64 on Fedora 14 and SELinux gave me a message (see title of thread). It sounded like a serious problem. Do I have a corrupted version, is it nothing to worry about?

View 1 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

Ubuntu :: Make A Executable File Part Of The System Path?

Sep 1, 2010

Morning all , not sure how to put this. I have a .sh executable script I use for video encoding. I want the system to be able to see it no matter where in which folder I am. I want to be able to execute that script in terminal in any folder. How can I make it part of the system path. ? Don't know if my wording is right but I think you guys know what I mean.

View 9 Replies View Related

CentOS 5 :: Kernel Panic - Getting This"failed To Make Kdump Initrd" Messages At Startup."?

Oct 12, 2009

I've had a Centos 5.3 zimbra mailserver set up for about 3 months now.Every 7-10 days or so, the system will do a kernel panic and I've been putting off its resolution due to other matters.I'm now ready to look into it but I have two issues :

1) No logs.

So far, I've manually rebooted when a kernel panic occured and could look at the panic printout and write down relevant info. But since I wanted more info than I had written down, I went hunting in the logs for the kernel panic event (one happened earlier today) but, to my surprise, I noticed the system doesn't log the kernel panic at all. Kdump is currently disabled as I'd like to keep all available memory available to the system but I was under the impression it would log the kernel panic message regardless but would simply leave out more advanced diagnostic information.How would I make sure the kernel panic is logged so I can have more info about it ?

2) The actual panic.Here's a snippet of what's appearing when the kernel panics :

EIP c0467136 page_remove_rmap+0x66/0xc0 SS:ESP 0068:c3ca6ddc <0> Kernel panic - not syncing: Fatal Exception

I've also seen f793bee4 instead of the highlighted part above but everything else is always the same from the times I've seen (as I haven't always had the chance to be around when a panic occured).I'm looking further into it at this point but early research seem to indicate this could be a memory issue. I'll run memtest next weekend to check that out (since I don't want to take the system offline for any length of time during office hours) but people here might have other theories based on what I've put up so far. The system has all of the latest patches and updates and is running only what I need as far as software goes (zimbra server + prerequisites, x + GNOME (not loaded on startup), firefox and vnc for windows RDP access). My system also uses a software RAID1 array (boot = md0 and / = md2 with swap files not being mirrored as there's no need to).

PS : In order to further troublehsoot by myself before posting here, I've tried to enable kdump to see if kdump is the culprit for the missing logs but I'm also having an issue with it. I'm getting a "No kdump initial ramdisk found" and "mkdumprd: failed to make kdump initrd" messages at startup. I'm thinking this might be because of my raid array ? I've found an old bug report regarding one of those error messages on centos 5.2 but it was supposedly fixed in the 30 version by RH and I'm using the latest one (56).

View 5 Replies View Related

General :: Make All Files Non-executable Recursively Using Find Without Affecting Directories?

Sep 26, 2010

I need to strip the executable flag from all files within a certain directory and sub directories. Right now I'm doing it with a 2 step process

find /dir/ -type f -exec chmod ugo-x {} ;
find /dir/ -type d -exec chmod ugo+rx {} ;

Is it possible to modify the first line so that I can strip exec flag from all non-directory files? Since this needs to be done on a fairly regular basis across a lot of directories and files, I'd prefer not to use a bash script which would slow it down.

View 1 Replies View Related

Ubuntu :: Error Installing Ffmpeg - Unable To Make Executable File

Jul 20, 2011

I tried to install ffmpeg on 7.04(Fiesty Fawn). when i ran ./configure from terminal window, i got error regarding c compiler that unable to make executable file.

View 5 Replies View Related

CentOS 5 Server :: How To Make CentOS 5.6 Run Jsp

Sep 11, 2011

I have CentOS 5.6 on a VPS and naturally have root access.But I tried everything to make JSP run on it, I installed (I think it did) Tomcat, and nothing happens and I am at a lost.

View 2 Replies View Related

CentOS 5 Server :: Make A Custom Ks.cfg DVD For 5 Install

Jan 15, 2010

I need to make a custom ks.cfg DVD for my centOS 5 install. I figured I would download the 5.4.iso. My question is will packages from previous version of centOS 5.0-5-3 work with my 5.4 centOS image?

View 3 Replies View Related







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