ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 355 - 350-601 discussion

Report
Export

Refer to the exhibit.

Refer to the exhibit. A developer must create a Bash script that performs a Chef Client reload in the event of a system reset. Which command completes the script?

A.

Option A

Answers
A.

Option A

B.

Option B

Answers
B.

Option B

C.

Option C

Answers
C.

Option C

D.

Option D

Answers
D.

Option D

Suggested answer: D

Explanation:

In the context of Bash scripting for system automation, thekillproccommand is often used to stop a process. The correct option to complete the script for a Chef Client reload would involve sending a HUP (hang-up) signal to the Chef Client process, which is typically done to cause the process to reload its configuration without stopping the service. The commandkillproc -p $pidfile $exec --HUPwould send the HUP signal to the process identified by the pidfile, which is the expected behavior for a Chef Client reload on a system reset.

asked 10/10/2024
EduBP srl De Sanctis
35 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first