Skip to content

Commit

Permalink
Fixes #10602: Spurious messages \" initctl: Unknown job: XXX\" in output
Browse files Browse the repository at this point in the history
  • Loading branch information
ncharles committed Apr 13, 2017
1 parent abaf2eb commit dee2679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tree/20_cfe_basics/ncf_lib.cf
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,7 @@ bundle agent ncf_services(service, action)
};

# Due to lack of integration between upstart and init scripts, we have to make different cases.
"is_upstart_service" not => returnszero("/sbin/initctl status ${service} 2>&1 | ${paths.path[grep]} 'Unknown job'", "useshell"),
"is_upstart_service" not => returnszero("/sbin/initctl status ${service} 2>&1 | ${paths.path[grep]} 'Unknown job' > /dev/null", "useshell"),
ifvarclass => "initctl_utility_present";

# Due to compatibility issues when mixing init.d/service and systemctl calls, we use the init script when present
Expand Down

0 comments on commit dee2679

Please sign in to comment.