Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update code to match new JSW status output #1

Open
pupi1985 opened this issue Jul 17, 2016 · 0 comments
Open

Update code to match new JSW status output #1

pupi1985 opened this issue Jul 17, 2016 · 0 comments

Comments

@pupi1985
Copy link
Owner

The JSW team has updated the output of the status command on version 3.5.30. After a very quick test I was able to get this output from different OS:

Linux

Not installed, Not running
Test Wrapper Sample Application (not installed) is not running.

Installed, Not running
Test Wrapper Sample Application (installed with init.d) is not running.

Installed, Running
Test Wrapper Sample Application (installed with init.d) is running: PID:7596, Wrapper:STARTED, Java:STARTED

Not installed, Running
Test Wrapper Sample Application (not installed) is running: PID:7963, Wrapper:STARTED, Java:STARTED

Windows

Not installed, Not running
wrapperm | The Test Wrapper Sample Application Service is not installed.

Installed, Not running
wrapperm | The Test Wrapper Sample Application Service is installed.
wrapperm |   Start Type: Automatic
wrapperm |   Interactive: No
wrapperm |   Running: No

Installed, Running
wrapperm | The Test Wrapper Sample Application Service is installed.
wrapperm |   Start Type: Automatic
wrapperm |   Interactive: No
wrapperm |   Running: Yes

Not installed, Running
This combination is not possible in Windows so the status output is the same as the Not installed, Not running output.

MacOS

Not installed, Not running
Test Wrapper Sample Application (not installed) is not running.

Installed, Not running
Test Wrapper Sample Application (installed) is not running.

Installed, Running
Test Wrapper Sample Application (installed) is running: PID:4450, Wrapper:STARTED, Java:STARTED

Not installed, Running
Test Wrapper Sample Application (not installed) is running: PID:5144, Wrapper:STARTED, Java:STARTED

It is still not uniform across different OS but at least now it is possible to tell whether the daemon is actually installed under Unix-based systems.

The improvement could be displaying the current state (installed/running) in a few labels in the service/daemon section for any OS that can query that information without asking administrative privileges and adding the ability to check for the current service status manually as well. This would only enable the buttons that would make sense for the given status (and OS). The (native) output of the wrapper could be displayed as well but shouldn't strictly be necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant