Skip to content

Commit

Permalink
ncm-metaconfig: Add service action condrestart
Browse files Browse the repository at this point in the history
Current list of allowed service actions includes restart, reload, and stop_sleep_start.
This creates problems when the metaconfig component issues a reload action for a given service on a brand new host.
Since the host is new, that service has never been started, and therefore the reload command fails.
This also prevents the rest of Quattor components depending on metaconfig from running.
To solve this, allow service command condrestart, which works whether the service is already running or not.
  • Loading branch information
jose-caballero committed Jul 5, 2022
1 parent 0573de4 commit 1ba64d1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ type ${project.artifactId}_textrender_convert = {
true;
};

type caf_service_action = string with match(SELF, '^(restart|reload|stop_sleep_start)$');
type caf_service_action = string with match(SELF, '^(restart|condrestart|reload|stop_sleep_start)$');

type ${project.artifactId}_actions = {
@{Always run, happens before possible modifications.
Expand Down

0 comments on commit 1ba64d1

Please sign in to comment.