Skip to content
This repository has been archived by the owner on Jan 23, 2020. It is now read-only.

validate config before restart #163

Merged
merged 2 commits into from May 31, 2016
Merged

validate config before restart #163

merged 2 commits into from May 31, 2016

Conversation

amdprophet
Copy link
Member

No description provided.

@@ -319,13 +319,25 @@ status() {
return 3
}

validate_config() {
start_daemon $USER $pidfile $exec --validate_config "$options"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$options will include the log file, which will eat our validation output.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to modify the PID file argument so not to interfere with the running process.

@@ -319,13 +319,27 @@ status() {
return 3
}

validate_config() {
validate_pidfile=$PID_DIR/$sensu_service-validate.pid
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

${sensu_service}

@portertech
Copy link
Contributor

feet-grate

@portertech
Copy link
Contributor

👍

@portertech portertech merged commit 2c7da86 into master May 31, 2016
@portertech portertech deleted the validate_config branch May 31, 2016 16:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants