How to setup payaradomain as windows server

638 views
Skip to first unread message

Christian Salazar

unread,
Apr 10, 2017, 10:46:45 PM4/10/17
to Payara Forum
Hi All, 
how are you guys doing today?

I'm trying to setup payaradomain as a windows service but it always sets up the domain1 domain as default. Does anyone know what the commands are in cmd to setup payaradomain as windows service? 

your help will be appreciated. 

Jedi Sal.  

Mike Croft

unread,
Apr 11, 2017, 7:46:27 AM4/11/17
to Payara Forum
The best way to find out these things is to use the asadmin "help" subcommand (or pass "--help" to any normal subcommand). Using it with the create-service subcommand, I get the following output


/opt/payara/server/171/bin/asadmin help create-service

create-service(1)         asadmin Utility Subcommands        create-service(1)

NAME
       create-service - configures the starting of a DAS or a GlassFish Server
       instance on an unattended boot

SYNOPSIS
           create-service [--help] [--name service-name]
           [--serviceproperties service-properties]
           [--dry-run={false|true}] [--force={false|true}]
           [--serviceuser service-user]
           [--domaindir domain-dir]
           [--nodedir node-dir] [--node node]
           [domain-or-instance-name]

DESCRIPTION
       The create-service subcommand configures the starting of a domain
       administration server (DAS) or a GlassFish Server instance on an
       unattended boot on Windows, Linux, and Oracle Solaris systems.

       If no operand is specified and the domains directory contains only one
       domain, the subcommand configures the starting of the DAS for the
       default domain. If no operand is specified and the domains directory
       contains multiple domains, an error occurs.


So the command you would need to use would be:

asadmin create-service payaradomain

I would recommend you run the help command yourself, too, since there is a lot of extra information there which may be relevant.
Reply all
Reply to author
Forward
0 new messages