CentOS 5 Server :: Setting Up A Java App As A Deamon/service?

Dec 8, 2009

There 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?

View 1 Replies


ADVERTISEMENT

CentOS 5 Server :: Implementing A Java Program As A Service?

Jul 23, 2009

I'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 Related

CentOS 5 Server :: Reboot The Server With Centos 5.5 The SMB Deamon Doesn't Start?

Feb 22, 2011

when I reboot the server with centos 5.5 the SMB deamon doesn't start?

View 2 Replies View Related

General :: Difference Between Deamon And Service?

Jun 15, 2010

difference between deamon and service in Linux?

View 9 Replies View Related

CentOS 5 :: Setting Up Java Globally In 5.5?

Feb 6, 2011

I've just installed CentOS5.5 on an older P3 machine as well as in a VM under Virtual Box on my laptop and I've run into the same issue with Java on both. During installation, I make sure not to install any form of Java anything as I wish to use Sun/Oracle's JDK. On first login on both machines, typing "java" in a shell finds that gij has magically installed, even though I didn't want it there.

I d/l and install Java 6-23 via the .rpm.bin package from Oracle. Typing java -version in the shell still returns "gij (GNU libgcj) version 4.1.2 20080704 (Red Hat 4.1.2-48)". Ok, so it's 2011 and Oracle/Sun still can't figure out how to write a java installer that will set PATH. I add the following to my .bashrc file under my normal user:

PATH=/usr/local/jdk1.6.0/bin
export PATH

log out, log in and java reports the correct version... Except now I can't su, open vi or a number of other things.

Since I want to use this globally anyways, how do I go about using this version of Java globally for all things java? (eclipse, jboss, etc...) #alternatives --config java only shows this gij version.

View 4 Replies View Related

Server :: Setting F13 With 389 Directory Service For Authentication

Jun 28, 2010

I am setting up Fedora-13 with "389 directory server" for authentication. I had performed the following steps.

1. Install FD-13.
2. Yum install 389-ds.
3. Run script to configure.
4. Start 389-condole and create few group and user for testing.

I can see these user with "ldapsearch" and with "phpldapadmin". It looks my server is responding. However, I am unable to see any user name with "getent passwd". also "ssh server_user@server" is not able to login. Whereas "getent passwd" shows local user and "ssh local_user@server" is able to login. Also note that I am not using ssl, so want to avoid ssl.

View 9 Replies View Related

Ubuntu :: Git-server / When Run Error Appear: Git: 'git-deamon' Is Not A Git Command?

Dec 10, 2010

Ive in vmware an Ubuntu Git server, and form the server to the server it works perfect If i connect with mine mac to the server it ask for a password, and ive no idea what that is.

But on the internet was standing a command for public reposority git git-daemon --base-path=/home/git/repositories/ --export-all

when I run it , this error appear: git: 'git-deamon' is not a git command. See 'git --help'.

View 8 Replies View Related

CentOS 5 Server :: A New Service Appears After The Entire Server Was Replaced

Mar 29, 2010

I noticed that my VPS was rebooted recently and a new service appears

[root@localhost ~]# pstree
init─┬─brcm_iscsiuio───2*[{brcm_iscsiuio}]

View 3 Replies View Related

Server :: How To Start SSL Service In Centos 5.5

Feb 7, 2011

I am in the task of migrating old linux to new linux which centos 5.5. while moving out all apps ,data etc.I need to configure SSL in apache.I have installed mod_ssl with apache 2.2. i went though some docs to configure with certificate that I have . Not sure how to start the service in 2.2. The apache/SSL was configured in my old server which apachectl. SO after importing certificatr , I do ./apachectl startssl to take in effect. In my new server , the http service is /etc/init.d/httpd, not sure how to start SSL service in centos 5.5.

[Code]...

View 2 Replies View Related

CentOS 5 :: Accessing X Server As A Service?

Jun 3, 2010

I have a webservice which runs under Apache Tomcat. The service is started via a script in /etc/init.d. During the course of the Web service processing, the software must make use of the two NVIDIA GPUs on the computer to do some graphics processing. When this system is booted but not logged in, the web service is accessible but the software cannot access the software cannot access the X server to do it's processing. However, when I am logged in, the user can access the X servers and run correctly. I have tried various solutions but I always have to be logged in to run the software. I seem to have permissions problems but I'm unsure how to resolve them

Is there any way to grant permissions to root (the tomcat service is started as root) to allow it to run the software without logging in?

I am running CentOS 5.4 with Gnome display manager.

View 4 Replies View Related

CentOS 5 :: Stop The X Server Service ?

Aug 9, 2010

I been trying to install the Nvidia driver for my recently installed centos desktop but I could not find the services that I can stop. I have a gnome. did try gdm, xdgm etc etc but no luck how do I stop the x server service ? so that I can install the driver.

View 3 Replies View Related

Server :: 389 Directory Service Setup On CentOS 5.5

Feb 1, 2011

I am trying to accomplish an objective, I need to get 389 Directory server installed in the process however is it possible to just have email addresses of users in the LDAP server? I have a primary domain, example 'abcefg.com' with about 3,000 users and several hosted domains like 'xyz.com' and 'mno.com'. The end goal is to speed up email processing, so instead of the Barracuda asking the email server(s) if a user exist it queries the LDAP.

Is there a way to configure 389 Directory Server to contain just the email addresses of the end users to allow the Barracuda to poll the LDAP server to verify the email address is valid. The rest of the authentication like password is handled by the email server. So in the end the LDAP server would just contain the email addresses (live) and the Barracuda would query the LDAP asking if joebob@abcefg.com exist if it does carry on. If user xxeedd@abcefg.com does not exist drop it and go on.

View 4 Replies View Related

CentOS 5 Server :: H/A Samba Service - Won't Authenticate?

Feb 17, 2009

Set up a new cluster service for a cifs share. Has these properties:

Service name = cifs_cases
Autostart is checked
name=cases type=GFS Scope=shared

[code]....

View 1 Replies View Related

CentOS 5 Server :: VMware Service Not Running

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

CentOS 5 Server :: Set A Service To Start Up Automatically?

Apr 24, 2010

Ok, so I have installed apache 22, mysql5.0 and proftpd1.3. When I reboot my server, the above applications do not start up automatically, and I have been trying to figure out how with out much success. know that I need to make some changes inside the init.d directory on my CentOS Server.I am running CentOS 5.4 x86_64 build.I really am not sure how to accomplish the task or where to start.

View 4 Replies View Related

CentOS 5 Server :: Service Not Starting On Bootup?

Jul 19, 2010

I have a service I've made an init script for, and it's added to chkconfig, which shows it "on" in all the correct runlevels. When I start or stop this service using the "service" command all is fine, but it does not start on it's own at bootup. I am currently at a loss to determine why it is not starting. Here is the script:

#!/bin/bash
# chkconfig: 2345 95 10
# description: Start or stop home automation
#

[Code]....

View 4 Replies View Related

CentOS 5 Server :: Named Service Cannot Be Start?

Oct 9, 2010

i meet problem on named service, i want to configure my DNS with bind...after i /etc/init.d/named statusThis shows :"rndc: connect failed: 127.0.0.1#953: connection refusednamed is stopped"

View 2 Replies View Related

CentOS 5 Server :: FTP Service For Virtual Web Hosting?

Nov 3, 2010

I have just finished bulding a virtual web hosting server on my CentOS-5.5 x86_64 linux box with several websites hosted and its working fine. Now I have to build and FTP service in this webhosting server so that i can create indviudal login for each website and provide access to thier respective web directory only. This is where I am stuck. I have been trying to find out some docs and instructions to achieve this but in vain.

What I need is to configure an FTP service in the web server so that individual owner of websites can login to thieir respective web directories only and upload and download files as well as create, delete and modify the contents of their web directory.

View 1 Replies View Related

CentOS 5 Server :: Creating New Service Scripts - PidFile?

Mar 17, 2009

I am new to linux, running a brand new centos 5.2 server. One application I want to use it for is to serve as a network host for a game my friends and I enjoy. Normally, to run the game in host mode you call the binary and pass it a port number (along with other options). To host a second instance of the game, same thing different port, you get the idea.

After doing that the binary runs in your window and dumps to stdout, so if you want it to run 24/7 you have to come up with your own strategy like nohup. Fair enough, now, I'm trying to coax the game into restarting automatically upon reboot. The most correct way to do this seemed to be to write a script for init.d so that's the road I traveled down. Now, to strain the metaphor, the pavement has ended and I'm stuck in the sand.

Here begin my questions:
I've been following the structure of other init.d scripts and I notice they all seem to call the function daemon() (contained in /etc/init.d/functions) to start their services. Looking at the structure of daemon() I see that you can pass it a user and a pidfile. The user part seems to work fine, but no pidfile is created. Let me be more specific.

Like the other scripts, I explicitly touch /var/lock/subsys/game-port on startup, which works fine. However, all of those other services seem to have a pidfile in /var/run and mine doesn't. They don't create it explicitly in their init.d script therefore I assume that some other process is creating the pidfile. At first I thought it would be the call to daemon(), since you have the option of passing it --pidfile, but that doesn't seem to work.

Are the services themselves creating the pidfile? If that's the case then I have more complications because the game binary apparently doesn't do this. Second question but probably related to the first. None of the other init.d scripts I looked at seem to do anything special to detach their services from a particular terminal session, therefore I didn't think that I would need to either.

Again I thought this was something the call to daemon() might accomplish, but either I'm wrong or I'm doing something wrong. I can probably work around this with nohup or appending '&' or something, but I'm just curious that other services like crond, sshd, named, etc., don't seem to do this. Are they determining this behavior from within the binaries themselves? I hope this is clear, as I said I'm new so I may not be getting all of the terminology correct.

View 2 Replies View Related

CentOS 5 Server :: Possible To Run Directory Service And Httpd In The Same Machine?

Feb 9, 2010

For the first time in installed and configured centos-ds from this HowTos and from the manuals.It is running nicely but disabled my httpd.Is it not possible to run directory service and httpd in the same machine

View 3 Replies View Related

CentOS 5 :: Service HTTPD Fails When Server Restarted

Apr 22, 2011

I installed centos 5.5 and httpd service was working well for the last 2 weeks till yesterday. I restarted server and noted my hosting service were not working. I have tried service httpd restart on the terminal and it dispalys [FAILED]. I updated my machine and and have tried restarting it but it doesn't work. I am new to centos and I dont know how to solve this.

View 2 Replies View Related

CentOS 5 Server :: Bind 9.3.6 - Named Service Start Failed ?

Oct 12, 2010

I meet this problem after i reformat the CentOS 5...I havent do any configuration, the named service start failed ? why ....

View 2 Replies View Related

CentOS 5 Server :: Vncserver Freezes Some Sessions / Can't Click / Need To Restart Service

Nov 24, 2009

I'm running VNC Server on CentOS5 on a brand new installation, this is for some of my students to use specific software via VNC on their machines from home that they otherwise don't have access to on their Windows machines. This has been working fine on our previous server for a few years but the hardware is now outdated so I have upgraded and put a fresh install of CentOS 5 on. This works fine for about 24 hours and then eventually one of the session ends up freezing where the user then can see everything on their session, the cursor can move but they cant click a single thing.

View 1 Replies View Related

CentOS 5 Server :: Host Or Domain Name Not Found. Name Service Error : Postfix?

Jun 7, 2011

Tearing my hair out on this one a little bit, having problems sending message from web based PHP form to user inbox.I keep getting: Undelivered Mail Returned to Sender<me@mydomain.co.uk>: Host or domain name not found. Name service error for name=mydomain.co.uk type=A: Host not found.Running these commands:

$ hostname = mydomain.co.uk
$ hostname -f = mydomain.co.uk
$ postconf -n =

[code]....

View 6 Replies View Related

CentOS 5 Server :: Setting Up Tftp-server - Cisco Switch Configurations Can Be Sent

Feb 15, 2011

I am trying to setup CentOS server 5 with tftp where the Cisco switch configs can be sent. I have the following:

[code]...

View 14 Replies View Related

CentOS 5 Server :: Setting Up CUPS (command Line) On New Server?

Mar 29, 2009

I was using Red Hat 7.3 forever and decided it was time for a change. I went to Fedora 10 but it was really buggy. CentOS 5.2 is VERY stable.Here is my problem.The server is command line only -- I tend to hate GUI"S.I setup Samba no problem disabling the ports needed through the firewall and that was straightforward.CUPS is a nightmare for me since CentOS locks down the cupsd.conf and then the firewall does its thing. I allowed port 631 through the firewall but then got lost on the cupsd.conf. It's been too long and the old redhat one won't work with CentOS (not surprising since it's a VERY old system) straight-forward CUPS tutorial for a command line interface. I just need it to be:

a) do this

b) do that

View 4 Replies View Related

Fedora :: Running Java As A Service?

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

Server :: Regding JAVA Installation In CENTOS/RHEL?

Feb 17, 2011

Note : Test it on Test Machine before you do it on live server O.S : RHEL 5 / CENTOS 5 FYI.... OR IDEA If you wish to install only jre download & install jre-6u18-linux-i586-rpm.bin in /usr/java ( Note create java dir { mkdir /usr/java }

#ll /usr/bin/java
lrwxrwxrwx 1 root root 22 Feb 12 19:24 /usr/bin/java -> /etc/alternatives/java
unlink /usr/bin/java

[code]....

View 1 Replies View Related

CentOS 5 :: What To Consider In Setting Up Server

Feb 22, 2011

I've setup a server for a small office (10 people) before with samba domain and file server with slackware. no problem there. now am tasked to setup a samba domain and file server for 300 users in 5 different locations. I am currently given a 1u rack server and I requested for 2x1tb drives that I plan to with RAID.

Some of the offices will be connected via VPN using sonicwall. Would it be ideal for remote users to login to the server in the HQ? Am not so familiar with how other companies setup their servers if they have multiple remote sites. Am also open to setting up servers in each site but because of the currently limited manpower, i'd rather have it close by so I can work on the server remotely if needed.

are there any things that I should consider or are there any good references on setting up a corporate server? the problem now is that the company uses google's email app as their email provider, I have gotten a host to do that already. But since they use email to share files, its not very efficient, hence the file server. But since there are a lot of mobile employees and employees in different sites, I would want them to be able to access those files being shared access the company or departments also.

Then I have to consider how to backup the files and other apps that the company will be using. SInce we will be primarily using linux, we would need to do virtualize some windows based apps that they are using now.

View 1 Replies View Related

Red Hat / Fedora :: Running Java As Daemon / Service

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







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