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

Ordering of -S and --pidfile #28

Open
szaydel opened this issue May 27, 2013 · 0 comments
Open

Ordering of -S and --pidfile #28

szaydel opened this issue May 27, 2013 · 0 comments

Comments

@szaydel
Copy link

szaydel commented May 27, 2013

The order in which -S|--status and --pidfile are specified will determine success of command:

# ./mon --pidfile /var/run/checkd.pid -S
13858 : alive : uptime 15 seconds

# ./mon -S --pidfile /var/run/checkd.pid
Error: --pidfile required

It should not matter whether -S|--status comes before or after the --pidfile argument. I don't think it should matter at least. There is nothing seemingly to be gained from having specific ordering.

deweerdt added a commit to deweerdt/mon that referenced this issue Dec 1, 2013
Execute the on_status() logic after all options have been processed
so that the ordering between -S and -p doesn't matter.
tj added a commit that referenced this issue Dec 1, 2013
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