Complete the code to start the Supervisor service on Raspberry Pi.
sudo systemctl [1] supervisorTo start the Supervisor service, use start with systemctl.
Complete the Supervisor configuration file to set the command to run a Python script.
[program:myapp]
command=[1] /home/pi/myapp.py
autostart=true
autorestart=trueThe command should use python3 to run a Python script.
Fix the error in the Supervisor command to reload configuration.
sudo supervisorctl [1]The reload command tells Supervisor to reload its configuration files.
Fill both blanks to create a Supervisor program config that runs a script with auto restart on failure.
[program:worker] command=[1] /home/pi/worker.py autorestart=[2]
autorestart to false disables automatic restart on failure.Use python3 to run the script and set autorestart=true to auto restart.
Fill all three blanks to define a Supervisor program that runs a Node.js app with autorestart and logs enabled.
[program:webapp] command=[1] /home/pi/app.js autorestart=[2] stdout_logfile=[3]
Use node to run the app, set autorestart=true, and specify the log file path.