; Sample supervisor config file. ; ; For more information on the config file, please see: ; http://supervisord.org/configuration.html ; [inet_http_server] ; inet (TCP) server disabled by default port=127.0.0.1:9001 ; ip_address:port specifier, *:port for all iface ;username=jsonscada ; default is no username (open server) ;password=secret ; default is no password (open server) [supervisord] logfile=/tmp/supervisord.log ; main log file; default $CWD/supervisord.log logfile_maxbytes=50MB ; max main logfile bytes b4 rotation; default 50MB logfile_backups=10 ; # of main logfile backups; 0 means none, default 10 loglevel=info ; log level; default info; others: debug,warn,trace pidfile=/tmp/supervisord.pid ; supervisord pidfile; default supervisord.pid nodaemon=false ; start in foreground if true; default false silent=false ; no logs to stdout if true; default false minfds=1024 ; min. avail startup file descriptors; default 1024 minprocs=200 ; min. avail process descriptors;default 200 ; The rpcinterface:supervisor section must remain in the config file for ; RPC (supervisorctl/web interface) to work. Additional interfaces may be ; added by defining them in separate [rpcinterface:x] sections. [rpcinterface:supervisor] supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface ; The supervisorctl section configures how supervisorctl will connect to ; supervisord. configure it match the settings in either the unix_http_server ; or inet_http_server section. [supervisorctl] ;serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket serverurl=http://127.0.0.1:9001 ; use an http:// url to specify an inet socket ;username=user ; should be same as in [*_http_server] if set ;password=123 ; should be same as in [*_http_server] if set ;prompt=mysupervisor ; cmd line prompt (default "supervisor") ;history_file=~/.sc_history ; use readline history if available ;[program:server_realtime] ;command=/usr/bin/node /home/control/json-scada/src/server_realtime/index.js ;process_name=%(program_name)s ; process_name expr (default %(program_name)s) ;numprocs=1 ; number of processes copies to start (def 1) ;directory=/home/control/json-scada/src/server_realtime/ ; directory to cwd to before exec (def no cwd) ;user=control ; setuid to this UNIX account to run the program ;stdout_logfile=/home/control/json-scada/log/server_realtime.log ; stdout log path, NONE for none; ;stdout_logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB) ;stdout_logfile_backups=0 ; # of stdout logfile backups (0 means none, default 10) ;stdout_capture_maxbytes=1MB ; number of bytes in 'capturemode' (default 0) ;stderr_logfile=/home/control/json-scada/log/server_realtime.err ; stderr log path, NONE for none; ;stderr_logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB) ;stderr_logfile_backups=0 ; # of stderr logfile backups (0 means none, default 10) ;stderr_capture_maxbytes=1MB ; number of bytes in 'capturemode' (default 0) [program:server_realtime_auth] command=/usr/bin/node /home/control/json-scada/src/server_realtime_auth/index.js ;process_name=%(program_name)s ; process_name expr (default %(program_name)s) numprocs=1 ; number of processes copies to start (def 1) directory=/home/control/json-scada/src/server_realtime_auth/ ; directory to cwd to before exec (def no cwd) user=control ; setuid to this UNIX account to run the program stdout_logfile=/home/control/json-scada/log/server_realtime_auth.log ; stdout log path, NONE for none; stdout_logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB) stdout_logfile_backups=0 ; # of stdout logfile backups (0 means none, default 10) stdout_capture_maxbytes=1MB ; number of bytes in 'capturemode' (default 0) stderr_logfile=/home/control/json-scada/log/server_realtime_auth.err ; stderr log path, NONE for none; stderr_logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB) stderr_logfile_backups=0 ; # of stderr logfile backups (0 means none, default 10) stderr_capture_maxbytes=1MB ; number of bytes in 'capturemode' (default 0) [program:cs_data_processor] command=/usr/bin/node /home/control/json-scada/src/cs_data_processor/cs_data_processor.js ;process_name=%(program_name)s ; process_name expr (default %(program_name)s) numprocs=1 ; number of processes copies to start (def 1) directory=/home/control/json-scada/src/cs_data_processor/ ; directory to cwd to before exec (def no cwd) user=control ; setuid to this UNIX account to run the program stdout_logfile=/home/control/json-scada/log/cs_data_processor.log ; stdout log path, NONE for none; stdout_logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB) stdout_logfile_backups=0 ; # of stdout logfile backups (0 means none, default 10) stdout_capture_maxbytes=1MB ; number of bytes in 'capturemode' (default 0) stderr_logfile=/home/control/json-scada/log/cs_data_processor.err ; stderr log path, NONE for none; stderr_logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB) stderr_logfile_backups=0 ; # of stderr logfile backups (0 means none, default 10) stderr_capture_maxbytes=1MB ; number of bytes in 'capturemode' (default 0) [program:calculations] command=/home/control/json-scada/bin/calculations ;process_name=%(program_name)s ; process_name expr (default %(program_name)s) numprocs=1 ; number of processes copies to start (def 1) directory=/home/control/json-scada/bin/ ; directory to cwd to before exec (def no cwd) user=control ; setuid to this UNIX account to run the program stdout_logfile=/home/control/json-scada/log/calculations.log ; stdout log path, NONE for none; stdout_logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB) stdout_logfile_backups=0 ; # of stdout logfile backups (0 means none, default 10) stdout_capture_maxbytes=1MB ; number of bytes in 'capturemode' (default 0) stderr_logfile=/home/control/json-scada/log/calculations.err ; stderr log path, NONE for none; stderr_logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB) stderr_logfile_backups=0 ; # of stderr logfile backups (0 means none, default 10) stderr_capture_maxbytes=1MB ; number of bytes in 'capturemode' (default 0) [program:iec104client] command=/home/control/json-scada/bin/iec104client 1 1 ;process_name=%(program_name)s ; process_name expr (default %(program_name)s) numprocs=1 ; number of processes copies to start (def 1) directory=/home/control/json-scada/bin/ ; directory to cwd to before exec (def no cwd) user=control ; setuid to this UNIX account to run the program stdout_logfile=/home/control/json-scada/log/iec104client.log ; stdout log path, NONE for none; stdout_logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB) stdout_logfile_backups=0 ; # of stdout logfile backups (0 means none, default 10) stdout_capture_maxbytes=1MB ; number of bytes in 'capturemode' (default 0) stderr_logfile=/home/control/json-scada/log/iec104client.err ; stderr log path, NONE for none; stderr_logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB) stderr_logfile_backups=0 ; # of stderr logfile backups (0 means none, default 10) stderr_capture_maxbytes=1MB ; number of bytes in 'capturemode' (default 0) [program:iec104server] command=/home/control/json-scada/bin/iec104server 1 1 ;process_name=%(program_name)s ; process_name expr (default %(program_name)s) numprocs=1 ; number of processes copies to start (def 1) directory=/home/control/json-scada/bin/ ; directory to cwd to before exec (def no cwd) user=control ; setuid to this UNIX account to run the program stdout_logfile=/home/control/json-scada/log/iec104server.log ; stdout log path, NONE for none; stdout_logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB) stdout_logfile_backups=0 ; # of stdout logfile backups (0 means none, default 10) stdout_capture_maxbytes=1MB ; number of bytes in 'capturemode' (default 0) stderr_logfile=/home/control/json-scada/log/iec104server.err ; stderr log path, NONE for none; stderr_logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB) stderr_logfile_backups=0 ; # of stderr logfile backups (0 means none, default 10) stderr_capture_maxbytes=1MB ; number of bytes in 'capturemode' (default 0) [program:Dnp3Client] command=/home/control/json-scada/bin/Dnp3Client 1 3 ;process_name=%(program_name)s ; process_name expr (default %(program_name)s) numprocs=1 ; number of processes copies to start (def 1) directory=/home/control/json-scada/bin/ ; directory to cwd to before exec (def no cwd) user=control ; setuid to this UNIX account to run the program stdout_logfile=/home/control/json-scada/log/Dnp3Client.log ; stdout log path, NONE for none; stdout_logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB) stdout_logfile_backups=0 ; # of stdout logfile backups (0 means none, default 10) stdout_capture_maxbytes=1MB ; number of bytes in 'capturemode' (default 0) stderr_logfile=/home/control/json-scada/log/Dnp3Client.err ; stderr log path, NONE for none; stderr_logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB) stderr_logfile_backups=0 ; # of stderr logfile backups (0 means none, default 10) stderr_capture_maxbytes=1MB ; number of bytes in 'capturemode' (default 0) [program:pg_hist] command=/home/control/json-scada/sql/process_pg_hist.sh ;process_name=%(program_name)s ; process_name expr (default %(program_name)s) numprocs=1 ; number of processes copies to start (def 1) directory=/home/control/json-scada/sql/ ; directory to cwd to before exec (def no cwd) user=control ; setuid to this UNIX account to run the program stdout_logfile=/home/control/json-scada/log/pg_hist.log ; stdout log path, NONE for none; stdout_logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB) stdout_logfile_backups=0 ; # of stdout logfile backups (0 means none, default 10) stdout_capture_maxbytes=1MB ; number of bytes in 'capturemode' (default 0) stderr_logfile=/home/control/json-scada/log/pg_hist.err ; stderr log path, NONE for none; stderr_logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB) stderr_logfile_backups=0 ; # of stderr logfile backups (0 means none, default 10) stderr_capture_maxbytes=1MB ; number of bytes in 'capturemode' (default 0) [program:pg_rtdata] command=/home/control/json-scada/sql/process_pg_rtdata.sh ;process_name=%(program_name)s ; process_name expr (default %(program_name)s) numprocs=1 ; number of processes copies to start (def 1) directory=/home/control/json-scada/sql/ ; directory to cwd to before exec (def no cwd) user=control ; setuid to this UNIX account to run the program stdout_logfile=/home/control/json-scada/log/pg_rtdata.log ; stdout log path, NONE for none; stdout_logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB) stdout_logfile_backups=0 ; # of stdout logfile backups (0 means none, default 10) stdout_capture_maxbytes=1MB ; number of bytes in 'capturemode' (default 0) stderr_logfile=/home/control/json-scada/log/pg_rtdata.err ; stderr log path, NONE for none; stderr_logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB) stderr_logfile_backups=0 ; # of stderr logfile backups (0 means none, default 10) stderr_capture_maxbytes=1MB ; number of bytes in 'capturemode' (default 0)