Ubuntu :: Check If Service Is Running?
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
ADVERTISEMENT
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
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
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
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
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
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
Jul 10, 2010
Running 10.04, just installed a ton of updates from Update manager.Printer is HP Officejet 6210Everything working fine up until after installing updatesWhen I try to print I get error message. Starting to troubleshoot tells me that CUPS service is not running, when I try to locate using http://localhost:631/ I cannot connect.Checking Synaptic it seems everything is installed that should be
View 1 Replies
View Related
Aug 27, 2010
I have telnet service intalled(apt-get install telnetd), but when I type telnet, I'm getting the following error:
bash: /usr/bin/telnet: No such file or directory
View 9 Replies
View Related
Feb 18, 2010
have a web application that runs fine.Whenever I run jetty manually the application runs ok. This is what I do:sudo java -jar start.jarThe application is located within the webapps directory correctly and the required jar files are within /usr/share/jetty/lib.But when I run jetty as a service:sudo service jetty startThe server starts, but the application does not respond. There is no error in the output. This is very strange, isn't it
View 1 Replies
View Related
May 19, 2011
all the tutorials i found for ushare and mediatomb shows it installed on desktop and not server. it also requires an account to be logged in. once logged it, you have to run a command to start it up. some questions.
1) is there a way to run either one w/o having to log into an account? so if say i restarted the server, it'll run the programs w/o me having to log in.
2) i would like to specify a directory to share music and movies. is one better than the other? clients that i plan to use are songbird, itunes (maybe), and vlc - maybe xbox 360 and ps3. other client suggestions?
3) other dlna server suggestions? this will be running on ubuntu 10 or 11 desktop or server. but the main thing i'm looking for is what i mentioned in #1.
View 3 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
Jun 22, 2011
I have a user account on my laptop which does not display the sound-service icon in my notification area applet (Ubuntu 11.04). If I try to start /usr/lib/indicator-sound/indicator-sound-service manually, I get the following error:
Code:
libindicator-WARNING **: No watchers, service timing out.
** (process:5612): DEBUG: Service shutdown !
In the many months I've had this account on this box, and as a result of the many minor mods I've made to the account, I've somehow bollixed something in the account setup which interferes with the startup of the service. I created a new account on the system, and the sound service icon displays properly, so I know it's not a system problem. Both the new, bare account and my personal account are in the audio group. As a work-around, I have an icon for gnome-volume-control on my top panel, which works pretty well.
View 2 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
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
Jul 7, 2010
I have a java program which I need to run as a service or daemon. What is the most stable method to do it? It will be heavy processing socket programming which will be continously receiving data?
View 4 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
Feb 5, 2010
I just did a basic service install of Centos5 and added the RPM package install of VMware-server 2.02. but I don't the VMware service is running (based upon the flowing screen:
[root@centoshost1 vmware-mui-distrib]# ps
PID TTY TIME CMD
2925 pts/0 00:00:00 bash
22378 pts/0 00:00:00 ps
So how do i start the VM service?
View 3 Replies
View Related
Apr 19, 2010
i was just wondering where can i check to make sure what bit system i am running. 32 or 64,
View 4 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
Aug 1, 2010
How to check whether ssh is running or not ? (I have install ssh)
If not how to make it run ?
View 4 Replies
View Related
Jan 26, 2011
I'd like to know if there is a script that can check and see if an application has been closed (I don't know a great deal about bash programming).I'm running an organ programme with this script.
/usr/bin/jackd -r -t5000 -dalsa -dhw:0 -r44100 -p1024 -n2 -P &
java -jar /home/user/jOrgan/jorgan.jar &
jack-rack -s space space &
[code]....
View 2 Replies
View Related
Nov 5, 2010
I have noticed on my netbook that F14 is running some sort of indexing service in the notification area. What is this, and how do I turn it off? I know what it is doing, but why is this just now important in F14. It is killing the battery life on my netbook.
View 2 Replies
View Related
Dec 5, 2009
I am facing some problem while running my tools (electronics tools).Actually my company has changed the internet connection (internet provider). Everything is working fine but it changed my IP address (which is ok) but it also changed my HOSTNAME (which is really starnge for me).And the problem with my tools is that with old connection it's working fine but with new connection GUI mode is not working, only batch mode is working.
View 14 Replies
View Related
Oct 27, 2010
I wrote up a script to check to see if any VMs are running in VirtualBox, and if there are, it would save the state they are in and then reboot or shutdown the host.Is there a way to make that script run outside of using an alias for "reboot" and "halt" when I run those two commands?Here's the script:
Code:
#!/bin/bash
if [[ -n $(VBoxManage -nologo list runningvms) ]]
[code]...
View 9 Replies
View Related