Subject: Re: Running Java program as a daemon...
To: Yosep <yoskim@NMSU.Edu>
From: Johnny C. Lam <jlam@netbsd.org>
List: tech-pkg
Date: 09/09/2003 10:12:19
On Tue, Sep 09, 2003 at 02:44:56AM -0600, Yosep wrote:
> 
> I later found out that in order to stop a daemon using default actions
> that are provided by the system, I also need to know the name of the
> daemon as in Process table.  But, since my daemon is showing as "java
> mydaemon", the system fails to match the name of daemon and the name on
> the process table, since mydaemon != java mydaemon.
> 
> Does anyone have any ideas or suggestions as to what I should do?

You may want to take a look at pkgsrc/net/ddclient/files/ddclient.sh
and see if you can apply that solution to your problem.  ddclient is
a perl script that runs as a daemon process.

	Cheers,

	-- Johnny Lam <jlam@NetBSD.org>