SB
Size: a a a
SB
SB
О
pi@raspberrypi:~ $ supervisorctl add templogger
error: <class 'socket.error'>, [Errno 13] Permission denied: file: /usr/lib/python2.7/socket.py line: 228
pi@raspberrypi:~ $ sudo supervisorctl add templogger
ERROR: no such process/group: templogger
pi@raspberrypi:~ $ sudo supervisorctl status
pi@raspberrypi:~ $
SB
О
SB
SB
SB
О
sudo systemctl start supervisord.service
SB
k
О
О
pi@raspberrypi:~ $ sudo systemctl status supervisord
● supervisord.service - Supervisor daemon
Loaded: loaded (/etc/systemd/system/supervisord.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2021-06-29 02:46:06 EEST; 12min ago
Docs: http://supervisord.org
Main PID: 2165 (supervisord)
Tasks: 1 (limit: 2065)
CGroup: /system.slice/supervisord.service
└─2165 /usr/bin/python /usr/local/bin/supervisord -n -c /etc/supervisor/supervisord.conf
SB
k
О
SB
SB
О
/etc/systemd/system/supervisord.service:
[Unit]
Description=Supervisor daemon
Documentation=http://supervisord.org
After=network.target
[Service]
ExecStart=/usr/local/bin/supervisord -n -c /etc/supervisor/supervisord.conf
ExecStop=/usr/local/bin/supervisorctl $OPTIONS shutdown
ExecReload=/usr/local/bin/supervisorctl $OPTIONS reload
KillMode=process
Restart=on-failure
RestartSec=42s
[Install]
WantedBy=multi-user.target
Alias=supervisord.service