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
ADVERTISEMENT
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
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
Jun 20, 2011
I need a script that is able to check if a service is running or not. It has to do it automatic since it is for restarting a GameServer.
I tried to make one myself, but since the .x86 file has the same name for every server, it is hard to know a way to check if the server is running with the right process.
Is there a way to make a script which is able to check if a service is running (service has same name, but using other ports)
View 1 Replies
View Related
Feb 8, 2010
I have six linux Centos 5.0 Servers. I had to configure the snmp client. I just created a pretty basic configuration snmpd.conf file
Code: rocommunity CompanyCom 10.1.1.10
I installed all of these
lm_sensors-2.10.7-4.el5.i386.rpm
net-snmp-libs-5.3.2.2-7.el5.i386.rpm
net-snmp-5.3.2.2-7.el5.i386.rpm
net-snmp-utils-5.3.2.2-7.el5.i386.rpm
4 of them are working fine, the application installed on 10.1.1.10 can query 4 servers but I got 2 Linux Centos that are in a DMZ, and my networking team already opened ports and configured NAT but the SNMP Server 10.1.1.10 is not able to query them how can I check the snmpd is really running apart from service snmpd status? might be related with the DMZ configuration?
View 3 Replies
View Related
Sep 6, 2010
how to make a script that will check service/s status whether running or stop and also will run stop services?
View 9 Replies
View Related
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
View Related
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
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
Apr 27, 2011
How do i check if NFS mounts are still up and running?
when i do the command MOUNT , i get some result, but how can i see (or check) if they still up and running? I'm not so familiar with this command, so i hope that someone can guide me
I know that there must be some NFS links mounted, so if one fails, i need to see that with like an echo or something.
View 12 Replies
View Related
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
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
Apr 3, 2011
so I wrote a small script that pretty much just takes in two numbers and counts from the first to the second, e.g.
unknown-hacker|544> count.sh 1 3
1
2
3
My problem is I want to make it so that if you input invalid parameters, such as non-numerical characters, more than 2 numbers, etc., you'd get an error message
View 15 Replies
View Related
Aug 16, 2010
How can I check which version of bash I'm running
View 2 Replies
View Related
Nov 13, 2010
I have a bash script that messages the user periodically. Is there any way in the script to check if the screensaver is running, so the script doesn't spam messages while the user is away? The xscreensaver process is always running in the background, I've noticed.
View 5 Replies
View Related
Jul 11, 2011
I have a game server running using java, and it tends to crash sometimes, and only way to start it now is manually, so i thought i could create a script to check periodically if java is running, and if it isn't, run my startup script for the game server also, if it's possible it should log when it actually started the server startup script into a text file or something, so i can check why it crashed.
View 6 Replies
View Related
Dec 17, 2010
Cannot activate Task Manager.
Message: 'Check if your dcopserver is running'
(ASUS Eee Netbook)
View 1 Replies
View Related
Jun 23, 2011
I have Linux server with cent OS.I have installed tomacat6.0 and postgresSQL8.3 on it.The thing is i wanna know whether the tomcat and postgresSQL is running or not using the script.
View 1 Replies
View Related
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
Oct 31, 2010
I have gotten an error message to please check that the dcopserver program is running.Where do I look to see if it is running?
View 3 Replies
View Related
Apr 27, 2009
from nmap localhost | grep mysql command i will come to know whether mysql server is running or not.my problem is i want to test whether mysql server is running or not in shell script and if it is running i need to tell the user to stop the server to run the shell script.
View 3 Replies
View Related
May 4, 2010
i have squid running in my network the problem i am facing is that once a week the squid service is dead, i checked the log files bu could not figure out what the problem is it gives me the error squid dead but pid file exist squid error no running copy i have written a script that just moves the compressed log files from the /var/log/squid files to /media/usbdisk the script is as follows i suspect that this problem arises because of the script coz the script runs every week and the next day i get this problem
[Code]...
View 4 Replies
View Related
Mar 8, 2010
I just want to know one thing. I had stop the network service in ubuntu, still i can able to ping google.com.what u think might be things to consider. these are the outputs see.
root@jeetendra-desktop:~# /etc/init.d/networking stop
* Deconfiguring network
interfaces... [ OK ]
root@jeetendra-desktop:~# ping google.com
[Code]....
View 4 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
Mar 10, 2010
Whenever I log into Fedora, an icon (a triangle with an exclamation mark) pops up in the main panel . When I move the mouse over it, the following is displayed. ABRT service not running. I restarted the service from the service configuration window but there was no difference. How do I configure it to run alway
View 5 Replies
View Related
Oct 28, 2010
I have a java program where I want to run it every 30 seconds. So what is the best way to run in that form? Is it running as a service or a cron is best? How to do with it
View 2 Replies
View Related
Apr 13, 2011
I have been away from Linux for years (about 10), I used to use it for everything and anything...now I am about to do it again but I need help getting back into it haha. Screen is broken on newish laptop, going to use it for firewall, router, file server, etc. Trying to setup remote desktop. I got Fedora 14 setup and installed on it, got SSH up and running where I can remote into it easily. Setting up VNC is starting to be a pain though.
I have Windows 7 on my other machine, with TightVNC and tried Tiger VNC also, disabled all firewall, on the same LAN. The service is running on the RH box, I just cant connect to it...am I missing something simple? It just times out. I followed [URL] thread for the most part.
View 2 Replies
View Related
Aug 27, 2010
I wish to start TeamViewer as a service in Ubuntu. In Windows I can load it as a service and remotely enter password at login screen. Is it possible with Ubuntu?
View 9 Replies
View Related
Jun 11, 2011
What is the proper way to make the smb and nmb services start (and keep running) automatically? I have successfully configured samba on my F15 box, but sometimes the other boxes cant see it. I check the status of smb and nmb and smb is running and active, but nmb status is "Running (exited)". If I manually restart nmb then nmb status changes to "Running (active)" and the problem goes away. However I want it to start (and keep running) automatically as it should. I am thinking maybe the problem is the way I set smb and nmb to start automatically.
I used
$chkconfig smb on
and
$chkconfig nmb on
Is this the correct way? if not, what is it? Maybe I need to be more specific about at which runlevels I want the services to start? I have googled, but found about 5 diferent methods to make this services start automatically, some with systemctrl, some editing files, chkconfig, and even the system-config-services app (which seems broken in f15 btw) and don't know which one to use.
View 9 Replies
View Related
Aug 21, 2011
I want to run 1 instance of x11vnc at boot after gdm starts, itsa remote vnc server that will work without me first loggin in
Im just not sure where or how to start it when computer boots? i can run it on another tty and connect so its all setup but not sure what the "right" was is.
View 5 Replies
View Related