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

NUT for Windows: add help/usage to the CLI wrapper nut.exe #2432

Closed
jimklimov opened this issue May 3, 2024 · 0 comments · Fixed by #2446
Closed

NUT for Windows: add help/usage to the CLI wrapper nut.exe #2432

jimklimov opened this issue May 3, 2024 · 0 comments · Fixed by #2446
Labels
enhancement impacts-release-2.8.2 Issues reported against NUT release 2.8.2 (maybe vanilla or with minor packaging tweaks) Low-hanging fruit A proposal or issue that is good for newcomers to codebase or otherwise a quick win packaging Windows
Milestone

Comments

@jimklimov
Copy link
Member

jimklimov commented May 3, 2024

Stems from discussion of #2429 :

...As for service registration, allegedly the bin/nut.exe program (coming from scripts/Windows/wininit.c in sources) should handle the service registration and un-registration and start-up. At least, so the sources say. Some command-line help/usage is sorely missing, made a bit of sense of it from sources though - and found that my attempts to start did log Event Viewer messages :

...
The following information was included with the event: 

StartServiceCtrlDispatcher failed : exiting, this is a Windows service which can't be run as a regular application by default. Try -N to start it as a regular application
...

Maybe a printf() of this message to current terminal (if any) would also be useful :) But gotta check the Windows rules about such printing for programs that do not have a terminal attached, if that would not wedge something...

@jimklimov jimklimov added enhancement packaging Windows Low-hanging fruit A proposal or issue that is good for newcomers to codebase or otherwise a quick win impacts-release-2.8.2 Issues reported against NUT release 2.8.2 (maybe vanilla or with minor packaging tweaks) labels May 3, 2024
@jimklimov jimklimov added this to the 2.8.3 milestone May 3, 2024
jimklimov added a commit to jimklimov/nut that referenced this issue May 14, 2024
jimklimov added a commit to jimklimov/nut that referenced this issue May 14, 2024
… arguments, report help() and exit with error code [networkupstools#2432]

Signed-off-by: Jim Klimov <[email protected]>
jimklimov added a commit to jimklimov/nut that referenced this issue May 14, 2024
… of NUT for Windows wrapper for all-in-one service [networkupstools#2432]

Signed-off-by: Jim Klimov <[email protected]>
jimklimov added a commit to jimklimov/nut that referenced this issue May 14, 2024
… of NUT for Windows wrapper for all-in-one service [networkupstools#2432]

Signed-off-by: Jim Klimov <[email protected]>
jimklimov added a commit to jimklimov/nut that referenced this issue May 14, 2024
jimklimov added a commit to jimklimov/nut that referenced this issue May 14, 2024
… arguments, report help() and exit with error code [networkupstools#2432]

Signed-off-by: Jim Klimov <[email protected]>
jimklimov added a commit to jimklimov/nut that referenced this issue May 14, 2024
… of NUT for Windows wrapper for all-in-one service [networkupstools#2432]

Signed-off-by: Jim Klimov <[email protected]>
jimklimov added a commit to jimklimov/nut that referenced this issue May 15, 2024
… of NUT for Windows wrapper for all-in-one service [networkupstools#2432]

Signed-off-by: Jim Klimov <[email protected]>
jimklimov added a commit to jimklimov/nut that referenced this issue May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement impacts-release-2.8.2 Issues reported against NUT release 2.8.2 (maybe vanilla or with minor packaging tweaks) Low-hanging fruit A proposal or issue that is good for newcomers to codebase or otherwise a quick win packaging Windows
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant