General :: Bash - Start A Service Only If It Isn't Running?

Apr 16, 2010

I know I have to count how many instances are running: ps x | grep apache2 | wc -l result if it's running: 2, or else: 1 I also know there is a command called test that I could use to perform the verification, but I don't know how to use test with wc

View 3 Replies


ADVERTISEMENT

OpenSUSE :: Get A Message That Says 'Search Service Not Running' With A Button That Says 'Start Search Service'?

Jun 12, 2010

The desktop search has stopped working in Gnome.I get a message that says 'Search Service not running' with a button that says 'Start Search Service'.When I click the button nothing happens

View 1 Replies View Related

General :: Bash Script - Check Process Is Running, If Not Start?

Feb 7, 2010

I am using Sphinx search on my webserver and it quits after a certain amount of time leaving my search page broken.Here is a bash script that I want to run every 10mins via cron:

Code:
#!/bin/bash
if pgrep searchd | grep "[0-9]"

[code]...

View 24 Replies View Related

Ubuntu :: Write A Bash Script That Will Check If XMBC Is Running If It Is Then Do Nothing Else Start It Then Do Some Other Things?

Jul 23, 2011

<edit>never mind dump the ;'s and it all works fine</edit> I'm trying to write a bash script that will check if XMBC is running if it is then do nothing else start it then do some other things.This is the start

Code:
#!/bin/bash
DISPLAY=:0.0

[code]....

View 2 Replies View Related

General :: Running Bash But Common Bash Commands Not Working?

Jul 17, 2010

below are the details of my system. I have bash as my current shell, some really common commands aren't working.

Do I need to do a re-installation of bash? Or how do I install a selection of bash commands which I need? (for example a subset of [URL])

Code:
root@sdptfw:~ # uname -a
Linux sdptfw.sdpt.co.za 2.4.36 #1 Tue Jul 22 13:13:24 GMT 2008 i686 i686 i386 GNU/Linux
root@sdptfw:~ # echo $SHELL$
/bin/bash$

[Code]....

View 13 Replies View Related

General :: Why Does Running A Program In Bash Work, When Running It In The Menu Doesn't?

Jul 26, 2010

I presume there is something in the JWM window manager - or Puppy Linux Lupu 5.01 itself that is conflicting with the normal loading of GMPLAYER....

I would like to know how to troubleshoot, and fix this problem if possible (even a workaround would be great).

View 1 Replies View Related

General :: Start Script Bash When System Start Stop Reeboot?

Dec 10, 2009

I have 3 script BASH. I want start this script when the system start,stop and reeboot.

View 4 Replies View Related

General :: Check Whether A Service Is Running?

Jan 29, 2010

I run a script manually like/usr/lib/openoffice.org/program/soffice and when I run

:ps -ef|grep openoffice

I get the following,

root 700 1 0 10:45 ? 00:00:00 /bin/sh /usr/lib/openoffice.org/program/soffice -calc

My question is how to check whether this script is running or not (It can be checked every 10 minutes) and how to make it as a service. (I don't have root access to put this in rc.local file or somewhere else).

View 2 Replies View Related

Fedora :: Start A Service Before Network Service?

Nov 6, 2010

I need to start a service before network service How to?

View 1 Replies View Related

General :: Don't Need The Apache Service Running All The Time?

Oct 27, 2010

I have recently ported from Windows to Linux (xubuntu) I am a developer, i installed everything i need, LAMP. Now in Windows i used to turn off all unnecessary Services, i don't need the Apache or MySQL service running all the time. I used: net start mysql

Whenever i needed it. How do i do the same in Linux:
1. Disabling not-needed daemons from auto-starting?
2. Starting them only when i need them?

View 2 Replies View Related

General :: Check If Service Is Running Or Not Using Java

Feb 26, 2011

i've some trouble to write a script on java on linux to check if service(ie:smbd) is runing or not,, could you give me some example? Or if is there any source about it for me to learn? i've two days search with zero result...

View 5 Replies View Related

General :: Dnsmasq Service Not Running - Bad Option

Jan 29, 2011

It says that this is a bad option
dchp-range=ignore,192.168.1.99,192.168.1.99
I am very new to linux but it says that's a bad option to why my dnsmasq service isn't running.

View 10 Replies View Related

General :: How To (Always) Start MySQL Service

Mar 27, 2010

I installed MySQL and I want the service to (always) start. When I google I always find the same answer; Goto System > Administration > Services. But I don have it. Administration for me goes from 'Printing' to 'Software Sources', so there's no 'Services'...

Also should I be able to start it from a shell, but I also can find that. (I have no /etc/rc.d/-directory and my /etc/init.d/-directory han no 'mysql'). I just started using Linux a few days ago (I only used MaxOsX and Windows before).

View 7 Replies View Related

General :: Service Won't Start At Boot?

May 25, 2010

I have a service/daemon that won't start from boot. I have used the chkconfig --add <script name> command that went ok I also used the chkconfig <script name> on and that seems to be fine and I have made the script executable Chmod 777 <filename>. By all account it looks like the script is running at boot the the services has not started. When I do a ps -ef | grep ndb_mgmd this process is no there. the script can be run from the console and sems to run fine!

#!/bin/bash
# chkconfig: 345 70 30
# description: MySQL Cluster management server start/stop script
echo hello Paul >> /tmp/hello.txt
configdir=/var/lib/mysql-cluster/

[Code]....

View 10 Replies View Related

General :: Command To Check Whether Service Installed / Running?

Feb 26, 2010

Is there a unique command ( common to all Linux Distros, Solaris, Windows ) to know whether a service is installed and running on my system or not??

View 5 Replies View Related

General :: DHCPD Service Fail To Start

Mar 14, 2010

My dhcpd service get failed every time when I try to start it
1) Actually I have a lan connection which has a static ip network 192.168.10.0/24 and the pc to which is using the dhcpd has a ip address 192.168.10.1/24
2) And I have a internet connection wirelessly which has a network 192.168.2.0/24
Now I want to problem ip address in the network of 192.168.10.0/24

Here below is the configuration file of dhcp server:
# dhcpd.conf
#
# Sample configuration file for ISC dhcpd
#
# option definitions common to all supported networks...
option domain-name "example.org";
option domain-name-servers ns1.example.org, ns2.example.org;
# Use this to enble / disable dynamic dns updates globally.
#ddns-update-style none; .....

View 3 Replies View Related

General :: Can't Start NTOP Service / Daemon

Jun 14, 2011

I have installed version of ntop 4.0.3 by guide.But I can't start ntop daemon/service. I didn't find a service file for starting.During the installation there was no problem only want to RRDTool so I installed that. Now there is no necessary package required.

View 1 Replies View Related

General :: HTTPD Service Fail To Start In RHEL6

Jun 7, 2011

I configured httpd.conf. With ip, port 80 and specified the document path correctly. But service httpd restart shows httpd stop fail, httpd start fail.

View 1 Replies View Related

General :: PostgreSQL Service Failed To Start Or Stop

Jan 6, 2010

I am using RHEL 5.0. I am having problem with postgresql service it is not starting, not stopping, not restarting.

View 5 Replies View Related

General :: Run A (service) Command As A Normal User During Start Up?

Oct 12, 2009

I have found so many ways for root user to execute commands in so many possible path locations - but having difficulties on executing commands as normal user - during start up.This is what i've got for /etc/rc.d/rc.local script:Code:su -l user && (/bin/sh svc_cmd.sh &)But the command doesn't run at all...

View 2 Replies View Related

General :: Unable To Start HTTPD Service - Getting Error

Jul 22, 2011

I have centos 5.3 installed, while restarting httpd service I get error starting http:/bin/bash line 1 9941 segmentation fault /usr/sbin/httpd. If I stop httpd service and start it will start but if make service httpd restart it give above error.

View 1 Replies View Related

General :: Unable To Start Network Service On My Centos Box

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

General :: Setup Ubuntu To Boot In Terminal Mode With All Service Running

May 5, 2010

Im running a virtual linux server on a low-end system, and i wold like to configure the server to boot in terminal window and not to the Gnome log in window, this is because of the low specs on the hardware.

View 5 Replies View Related

General :: Whenever Start Httpd Service 8 Apache Processes Get Triggered?

Apr 29, 2010

I m using apache http server for hosting a website.

Whenever i start httpd service 8 apache processes get triggered . Is it normal? Is apache is default application server like IIS in windows?

Quote:
top - 15:49:15 up 8 days, 22:53, 3 users, load average: 0.73, 0.77, 0.91
Tasks: 125 total, 1 running, 124 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.8% us, 8.0% sy, 0.0% ni, 91.2% id, 0.0% wa, 0.0% hi, 0.0% si
Mem: 2064720k total, 2017072k used, 47648k free, 204452k buffers

[Code]....

View 3 Replies View Related

General :: Service Start Script Doesn't Show OK Or FAILED?

Jul 17, 2010

I have written a init.d script but, when do '/sbin/service scriptd start' it does not indicate OK or FAILEDWhat could I be missing?

View 2 Replies View Related

General :: Unable To Start RALUS Service - Download Libstdc++.so.5

Sep 1, 2010

I trying to install RALUS on my RHEL 5 os version 2.6.18-8.el5 (i386) My backup exec server is BE 2010 R2 the installation of ralus completes however with error libstdc++.so.5 missing noted that due to this i'm unable to start ralus service /etc/init/VRTSralus found a link [url] need to download compat-libstdc++-33-3.2.3-63.i386.rpm tried the rpmfind.net and as well as rpm.pbone.netid did find appropriate rpm however could not download one.

View 4 Replies View Related

General :: Centos 5.3 - Unable To Start Sshd Service - Shows Error

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

Server :: DHCPD Will Start In Debug But Will Not Start As A Normal Service

Jun 7, 2010

I have setup a CentOS 5.5 server as a DHCP server. That will be it's only task in a Cisco callmanger VoIP environment The DHCP server that comes with CentOS 5.5 is from ISC V3.0.5 -redhat.

The server (HP DL360) has two physical NIC's of which only NIC1 is used (ETH0)

ifconfig shows:

Code:

The interface has a fixed IP setup.

My dhcp.conf file looks like this:

Code:

When I start (try to) dhcpd via the service interface or via the prompt as

Code: service dhcpd start

I get an [FAILED] message and the following is in /var/log/messages

Code:

But when I start the DHCPD on the comamnd prompt in debug mode it looks as follows:

Code:

and /var/log/messages shows:

Code:

Why does the system ask a declaration for eth0 0.0.0.0?

View 3 Replies View Related

General :: Fedora 12 After Upgrade - When Start Interactive Boot It Hangs After Trying To Run The Service Local

May 19, 2010

Recently i've upgraded my fedora 11 to 12 using the preupgrade command and now I have a problem booting! when i start the interactive boot it hangs after trying to run the service local, it looks as if its trying to boot because the cursor blinks really fast then blinks normally after a few seconds. no error was stated during the event. what seems to be the problem here?

View 3 Replies View Related

General :: Unable To Access From Windows Pc Shows Network Path Not Found Any Other Service To Start?

Dec 11, 2010

i format and reinstall centos after that i create one sambha share and valid users restart smb service but i am unable to access it from windows pc shows network path not found any other service need to start

View 2 Replies View Related







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