Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


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

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


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, 07:36 AM   #2
LQ 5k Club
Registered: Jan 2011
Location: Nowhere near you, thank God.
Distribution: OSX Sierra
Posts: 8,591
Blog Entries: 15

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

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


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 09:32 AM
[SOLVED] service httpd start [FAILED] tennis_slacker Linux - Server 1 07-07-2013 06:37 PM
http service failed to start eboy98 Linux - Server 7 04-02-2010 12:58 PM
when i try to start samba pdc's smb service nmbd failed to start . sandeepchau123 Linux - Newbie 2 10-20-2007 02:59 PM
PPP service failed to start tradewind Linux - Networking 0 06-28-2004 02:13 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:24 PM.

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