Run Java Program As Daemon Service Following Guide Not Working ?? (RHEL 5)

1.1k Views Asked by At

I am trying to run the program as mentioned here: http://www.source-code.biz/snippets/java/7.htm

while running the following command, I see error:

./javaDaemonTest.sh install

The error is as follows

./javaDaemonTest.sh: line 29: .: /etc/rc.status: is a directory
./javaDaemonTest.sh: line 193: rc_reset: command not found
ln: creating symbolic link `/usr/local/sbin/rcjavaDaemonTest' to `/var/local/javaDaemonTest/javaDaemonTest.sh': File exists
./javaDaemonTest.sh: line 221: rc_exit: command not found

How to debug it? Or, if you are following this guide, are you getting this error? My JAVA_HOME path is set correctly.

1

There are 1 best solutions below

2
On

The line 29 is

  . /etc/rc.status 

Which indicates it should have been a file. The script may be specific to SUSE (SLES). What is your OS/distribution? You are better off with trying the solution outlined in the same link..