Skip to content

Commit

Permalink
Update 'create-service.1' man page
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Pinčuk <alexander.v.pinchuk@gmail.com>
  • Loading branch information
avpinchuk committed Sep 14, 2023
1 parent bb88de6 commit 38c92fc
Showing 1 changed file with 18 additions and 14 deletions.
Expand Up @@ -38,7 +38,7 @@ DESCRIPTION
Behavior of create-service on Windows Systems
On Windows systems, the create-service subcommand creates a Windows
service to represent the DAS or instance. The service is created in the
disabled state. After this subcommand creates the service, you must use
automatic state. After this subcommand creates the service, you must use
the Windows Services Manager or the Windows Services Wrapper to start,
stop, uninstall, or install the service.

Expand All @@ -54,9 +54,9 @@ DESCRIPTION
* Executable file: service-nameService.exe

On Windows systems, this subcommand requires the Microsoft .NET
Framework
Framework 4.6.1 or later

(http://www.microsoft.com/net/) . Otherwise, the subcommand fails.
(https://dotnet.microsoft.com/) . Otherwise, the subcommand fails.

Behavior of create-service on Linux Systems
On Linux systems, the create-service subcommand creates a
Expand Down Expand Up @@ -194,25 +194,29 @@ EXAMPLES
that is running Windows.

asadmin> create-service
Found the Windows Service and successfully uninstalled it.
The Windows Service was created successfully. It is ready to be started. Here are
the details:
ID of the service: domain1
Display Name of the service:domain1 GlassFish Server
Domain Directory: C:\glassfish3\glassfish\domains\domain1
Configuration file for Windows Services Wrapper: C:\glassfish3\glassfish\domains\
Server Directory: C:\glassfish7\glassfish\domains\domain1
Configuration file for Windows Services Wrapper: C:\glassfish7\glassfish\domains\
domain1\bin\domain1Service.xml
The service can be controlled using the Windows Services Manager or you can use the
Windows Services Wrapper instead:
Start Command: C:\glassfish3\glassfish\domains\domain1\bin\domain1Service.exe start
Stop Command: C:\glassfish3\glassfish\domains\domain1\bin\domain1Service.exe stop
Uninstall Command: C:\glassfish3\glassfish\domains\domain1\bin\domain1Service.exe
Start Command: C:\glassfish7\glassfish\domains\domain1\bin\domain1Service.exe start
Stop Command: C:\glassfish7\glassfish\domains\domain1\bin\domain1Service.exe stop
Restart Command: C:\glassfish7\glassfish\domains\domain1\bin\domain1Service.exe
restart
Uninstall Command: C:\glassfish7\glassfish\domains\domain1\bin\domain1Service.exe
uninstall
Install Command: C:\glassfish3\glassfish\domains\domain1\bin\domain1Service.exe
Install Command: C:\glassfish7\glassfish\domains\domain1\bin\domain1Service.exe
install

This message is also available in a file named PlatformServices.log in the domain's
root directory
Status Command: C:\glassfish7\glassfish\domains\domain1\bin\domain1Service.exe status
You can also verify that the service is installed (or not) with sc query state= all
windows.services.uninstall.good=Found the Windows Service and successfully uninstalled
it.
For your convenience this message has also been saved to this file:
C:\glassfish7\glassfish\domains\domain1\PlatformServices.log
Command create-service executed successfully.

Example 2, Creating a Service on a Linux System
Expand Down Expand Up @@ -276,6 +280,6 @@ SEE ALSO
Administration, "Managing Services (Tasks)" in System Administration
Guide: Basic Administration

Microsoft .NET Framework (http://www.microsoft.com/net/)
Microsoft .NET Framework (https://dotnet.microsoft.com/)

Jakarta EE 10 8 Dec 2011 create-service(1)

0 comments on commit 38c92fc

Please sign in to comment.