Fedora :: Running Java As A Service?
Oct 28, 2010I 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 RepliesI 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 RepliesI 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 Relatedi'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 Relatedi have added a tomcat startup service using chkconfig. I have set up JAVA_HOME and JRE_HOME as well ass alternatives to point to the correct location.I have an init script in /etc/init.d. When i start the tomcat service using [ /etc/init.d/<x> start ] everything works fine and the environment variables for JAVA_HOME and JRE_HOME are used correctly.Now i added the service <x> using chkconfig --add so that it can start on boot up. But now the service does not use the system environment variable for JAVA and JRE setup by me.Also after complete bootup if i try to start the service using [ service <x> start] the environment variable in the shell are not used. don't want to exclusively declare variables for JAVA_HOME and JRE_HOME in the init script.
View 2 Replies View RelatedWhenever 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 RelatedI 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.
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.
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.
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 RelatedI'm new to Fedora and have just purchased a subscription to a GoDaddy Virtual Dedicated Server, which I'm able to control using SSH.I have a Java application that I want to run as a daemon on this VDS. Some google searching yielded a bunch of different methods of doing this, none of which I'm sure would be guaranteed to work with Fedora, so I was hoping someone here could give it to me straight and fill me in on the simplest way of doing this.What is the best/simplest way to run a Java application as a daemon on Fedora?
View 2 Replies View RelatedThe 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 RelatedI've a java program which needs to be executed regardless of whether a user is logged in or not. Currently I've a shell script which executes the java program. I login to the server and run this shell script when the server is rebooted. I would like to start this script automatically preferably as a service so that I can stop and restart this service whenever I update the java program.
View 3 Replies View RelatedThere is a particular java app called LanguageTool which we need to host on our centos server. Other applications are supposed to send an http request to this machine; this machine should pass this data (received over the http request) to the java application concerned, obtain the output from the app; and then send this response back to the requesting client...
We need to set this app as a service on startup. The centos machine might restarted from time to time; so we expect this service should startup automatically. What can I do to get this done?
I'm trying to run a java app from a stock chart service called ThinkorSwim. I've tried it in NetrunnerOS2, Ubuntu 10.4 and Ubuntu 10.10. All of them result in the same java error.:I'm running Sun Java 6 update 22 on all these OSs.The install seemed to go OK, and I get the splash screen when it starts up and I get a "loading desktop" type of message then it throws that error. I've googled for 2 days and nothing I find is dealing with this error.
View 8 Replies View Relatedi can smb in centos 5 and i run service smb restart, it shows :smb: unrecognized service..... i run rpm -qa |grep samba,it shows
samba-common-3.0.33-3.7.el5
samba-client-3.0.33-3.7.el5
.....
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).
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 RelatedI 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)
I need to start a service before network service How to?
View 1 Replies View RelatedI 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 RelatedI 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?
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 RelatedI 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
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.
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?
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 Relatedall 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.
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 RelatedI 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.
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