users@glassfish.java.net

Re: How to start glassfish automatically in Linux

From: Alexis Moussine-Pouchkine <alexis.mp_at_sun.com>
Date: Sat, 08 Mar 2008 08:53:39 +0100

% asadmin start-domain --user ${adminuser} --passwordfile $
{PasswordFile} domain-name
Note GlassFish has SMF integration on Solaris...
-Alexis

On Mar 8, 2008, at 8:03, Gabor Szokoli wrote:

> On 3/8/08, glassfish_at_javadesktop.org <glassfish_at_javadesktop.org>
> wrote:
>> How to start GlassFish automatically in Linux ?
>> Anyone?
>
> Here's a primitive way:
>
> put these 2 lines in a file called /etc/init.d/glassfish :
>
> #!/bin/bash
> /opt/glassfish/bin/asadmin ${1}-domain
>
> make it executable with this command:
>
> chmod a+x /etc/init.d/glassfish
>
> link it from the runleves you want it to run in, distro dependent, but
> usually something like:
>
> ln -s /etc/init.d/glassfish /etc/rc2.d/S99glassfish
>
>
> Gabor Szokoli
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>