R
Size: a a a
R
О
О
О
/etc/supervisord.conf
или /etc/supervisor/supervisord.conf
?О
О
pi@raspberrypi:~ $ supervisorctl reload
error: <class 'PermissionError'>, [Errno 13] Permission denied: file: /usr/local/lib/python3.7/dist-packages/supervisor/xmlrpc.py line: 560
pi@raspberrypi:~ $ sudo supervisorctl reload
Restarted supervisord
pi@raspberrypi:~ $ sudo supervisorctl reread
No config updates to processes
pi@raspberrypi:~ $ sudo supervisorctl update
pi@raspberrypi:~ $ supervisorctl status
error: <class 'PermissionError'>, [Errno 13] Permission denied: file: /usr/local/lib/python3.7/dist-packages/supervisor/xmlrpc.py line: 560
pi@raspberrypi:~ $ sudo supervisorctl status
pi@raspberrypi:~ $
О
О
B
О
B
О
[program:templogger] ;The name of the program
command = /home/pi/templogger.py -db=temp_logger_db -sn=test1
directory = /home/pi/
user = pi; the user executing the process
stopsignal = INT
autostart = true; Whether to start automatically
autorestart = true; Whether to restart automatically
startsecs = 10; automatic restart interval
stderr_logfile = /var/log/helloworld.err.log; standard error log
stdout_logfile = /var/log/helloworld.out.log; standard output log
B
command=/usr/bin/python /home/pi/templogger.py
и далее по тексту.R
ReadFile(hSerial, &c, 1, &bytes_read, NULL)
if(bytes_read != 1)
{
break:
}
else
{
do_something;
}
И не надо никаких ивентовЕД
R
ЕД