LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-20-2015, 02:52 AM   #1
nagendrar
Member
 
Registered: Apr 2008
Location: HYD, INDIA.
Posts: 151

Rep: Reputation: 15
Failed to get JAVA_HOME with service <servicename> start


Hi,

I wrote a service script. In the script, I printed the JAVA_HOME.

JAVA_HOME is able to get when I start the service as /etc/init.d/<servicename> start

But failed to get JAVA_HOME when I start the service as 'service <servicename> start'
 
Old 11-21-2015, 06:36 AM   #2
Habitual
LQ Addict
 
Registered: Jan 2011
Posts: 8,343
Blog Entries: 11

Rep: Reputation: 2320Reputation: 2320Reputation: 2320Reputation: 2320Reputation: 2320Reputation: 2320Reputation: 2320Reputation: 2320Reputation: 2320Reputation: 2320Reputation: 2320
Is there an equivalent /etc/default entry?
 
Old 11-22-2015, 05:15 AM   #3
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,548

Rep: Reputation: 136Reputation: 136
where did you export JAVA_HOME variable? /etc/profile?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Squid service failed to start. abhiskshrma Linux - Newbie 3 07-03-2015 08:32 AM
[SOLVED] service httpd start [FAILED] tennis_slacker Linux - Server 1 07-07-2013 05:37 PM
http service failed to start eboy98 Linux - Server 7 04-02-2010 11:58 AM
when i try to start samba pdc's smb service nmbd failed to start . sandeepchau123 Linux - Newbie 2 10-20-2007 01:59 PM
PPP service failed to start tradewind Linux - Networking 0 06-28-2004 01:13 AM


All times are GMT -5. The time now is 10:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration