Skip to content
New issue

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

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

Already on GitHub? # to your account

distinguish start-the-service from service-specific tools #334

Closed
jonassmedegaard opened this issue Mar 17, 2022 · 2 comments · Fixed by #378
Closed

distinguish start-the-service from service-specific tools #334

jonassmedegaard opened this issue Mar 17, 2022 · 2 comments · Fixed by #378

Comments

@jonassmedegaard
Copy link

The command-line application atomic-server is mainly a daemon: When executed without options, it opens a port for an Atomic Server, without exiting to the shell.

Samme application also contains service house-keeping functionalities, e.g. to reset admin password.
It is confusing, however, that atomic-server --initialize does not only do what is documented but also starts a daemon.
My expectation is that when requesting a functional option then that function is executed instead of the default of running as a service.
An alternative (and my earlier expectation) would be to provide a separate command-line for non-service-starting functions.

Or rephrased: Seems impossible to e.g. reset password without starting service.

@jonassmedegaard jonassmedegaard changed the title distinguish daemon from server-specific tools distinguish start-the-service from service-specific tools Mar 17, 2022
@jonassmedegaard
Copy link
Author

See here for a concrete example of how cludgy the current interface becomes.

...or maybe I am simply missing some elegant different usage pattern?

@joepio
Copy link
Member

joepio commented Mar 17, 2022

Hmm, I see your point. If --initialize is changed with initialize, and it quits after performing the initialization, would that suffice? You'd still need to shut off the service, though, I need to run the script when actually initializing the server.

It would probably become:

    sudo service atomic-server stop
    sudo -u _atomic atomic-server initialize
    sudo service atomic-server start

Is that a significant improvement?

joepio added a commit that referenced this issue Apr 9, 2022
joepio added a commit that referenced this issue Apr 9, 2022
joepio added a commit that referenced this issue Feb 13, 2024
joepio added a commit that referenced this issue Mar 21, 2024
joepio added a commit that referenced this issue Mar 21, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants