Bird
0
0

How do you correctly specify a program named sensor in Supervisor's configuration file?

easy📝 Syntax Q3 of 15
Raspberry Pi - Automation and Scheduling
How do you correctly specify a program named sensor in Supervisor's configuration file?
A[process:sensor] command=python3 /home/pi/sensor.py autostart=true
B[program:sensor] command=python3 /home/pi/sensor.py autostart=true
C[service:sensor] command=python3 /home/pi/sensor.py autostart=true
D[app:sensor] command=python3 /home/pi/sensor.py autostart=true
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct section header

    Supervisor uses [program:name] to define programs.
  2. Step 2: Check syntax

    The command and autostart options are correctly placed under [program:sensor].
  3. Final Answer:

    [program:sensor] with command and autostart -> Option B
  4. Quick Check:

    Only [program:] is valid for defining programs [OK]
Quick Trick: Use [program:name] to define processes in config [OK]
Common Mistakes:
MISTAKES
  • Using incorrect section headers like [process:] or [service:]
  • Omitting the [program:] prefix
  • Misplacing command or autostart options

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Raspberry Pi Quizzes