mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2025-12-15 23:05:34 +01:00
python3-supervisor: add version 4.0.2
Added python3-supervisor with following missing DEPENDS - python3-meld3 version 1.0.2 Signed-off-by: Parthiban Nallathambi <parthitce@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
9414811280
commit
c5c6e9b545
15
meta-python/recipes-devtools/python/python-meld3.inc
Normal file
15
meta-python/recipes-devtools/python/python-meld3.inc
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
SUMMARY = "meld3 templating system used by Supervisor"
|
||||
DESCRIPTION = "\
|
||||
meld3 is an HTML/XML templating system for Python which keeps \
|
||||
template markup and dynamic rendering logic separate from one \
|
||||
another. See http://www.entrian.com/PyMeld for a treatise on the \
|
||||
benefits of this pattern."
|
||||
HOMEPAGE = "https://github.com/supervisor/meld3"
|
||||
LICENSE = "BSD"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=9e7581cef5645475fcefebdc15ed7abf"
|
||||
|
||||
SRC_URI[md5sum] = "3ccc78cd79cffd63a751ad7684c02c91"
|
||||
SRC_URI[sha256sum] = "f7b754a0fde7a4429b2ebe49409db240b5699385a572501bb0d5627d299f9558"
|
||||
|
||||
PYPI_PACKAGE = "meld3"
|
||||
inherit pypi
|
||||
30
meta-python/recipes-devtools/python/python-supervisor.inc
Normal file
30
meta-python/recipes-devtools/python/python-supervisor.inc
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
SUMMARY = "Supervisor: A Process Control System"
|
||||
DESCRIPTION = "\
|
||||
Supervisor is a client/server system that allows its users \
|
||||
to monitorand control a number of processes on UNIX-like \
|
||||
operating systems."
|
||||
HOMEPAGE = "https://github.com/Supervisor/supervisor"
|
||||
LICENSE = "BSD"
|
||||
LIC_FILES_CHKSUM = "file://LICENSES.txt;md5=5b4e3a2172bba4c47cded5885e7e507e"
|
||||
|
||||
SRC_URI[md5sum] = "ac70dadd051dcaf1d03c467d51a3aac1"
|
||||
SRC_URI[sha256sum] = "5604457da4fb89d850e78c128205fe4938c9277f87301885b33c94c60361e575"
|
||||
|
||||
PYPI_PACKAGE = "supervisor"
|
||||
inherit pypi systemd
|
||||
RDEPENDS_${PN} = "\
|
||||
${PYTHON_PN}-meld3 \
|
||||
"
|
||||
|
||||
SRC_URI += "file://supervisord.conf \
|
||||
file://supervisor.service \
|
||||
"
|
||||
SYSTEMD_SERVICE_${PN} = "supervisor.service"
|
||||
|
||||
do_install_append() {
|
||||
install -d ${D}${sysconfdir}/supervisor
|
||||
install -d ${D}${systemd_system_unitdir}
|
||||
|
||||
install -m 0644 ${WORKDIR}/supervisord.conf ${D}${sysconfdir}/supervisor
|
||||
install -m 0644 ${WORKDIR}/supervisor.service ${D}${systemd_system_unitdir}
|
||||
}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
inherit setuptools3
|
||||
require python-meld3.inc
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
[Unit]
|
||||
Description=Supervisor process control system for UNIX
|
||||
Documentation=http://supervisord.org
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf
|
||||
ExecStop=/usr/bin/supervisorctl $OPTIONS shutdown
|
||||
ExecReload=/usr/bin/supervisorctl -c /etc/supervisor/supervisord.conf $OPTIONS reload
|
||||
KillMode=process
|
||||
Restart=on-failure
|
||||
RestartSec=50s
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
; supervisor config file
|
||||
|
||||
[unix_http_server]
|
||||
file=/var/run/supervisor.sock ; (the path to the socket file)
|
||||
chmod=0700 ; sockef file mode (default 0700)
|
||||
|
||||
[supervisord]
|
||||
logfile=/var/log/supervisord.log ; (main log file;default $CWD/supervisord.log)
|
||||
pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
|
||||
childlogdir=/var/log/ ; ('AUTO' child log dir, default $TEMP)
|
||||
|
||||
; the below 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: sections
|
||||
[rpcinterface:supervisor]
|
||||
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
|
||||
|
||||
[supervisorctl]
|
||||
serverurl=unix:///var/run/supervisor.sock ; use a unix:// URL for a unix socket
|
||||
|
||||
; The [include] section can just contain the "files" setting. This
|
||||
; setting can list multiple files (separated by whitespace or
|
||||
; newlines). It can also contain wildcards. The filenames are
|
||||
; interpreted as relative to this file. Included files *cannot*
|
||||
; include files themselves.
|
||||
|
||||
[include]
|
||||
files = /etc/supervisor/conf.d/*.conf
|
||||
|
||||
;[inet_http_server]
|
||||
;port=127.0.0.1:9001
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
inherit setuptools3
|
||||
require python-supervisor.inc
|
||||
Loading…
Reference in New Issue
Block a user