initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
config BR2_PACKAGE_SUPERVISOR
|
||||
bool "supervisor"
|
||||
depends on BR2_PACKAGE_PYTHON || BR2_PACKAGE_PYTHON3
|
||||
select BR2_PACKAGE_PYTHON_SETUPTOOLS # runtime dependency
|
||||
help
|
||||
A client/server system that allows its users to control a
|
||||
number of processes on UNIX-like operating systems.
|
||||
|
||||
http://supervisord.org/
|
||||
|
||||
comment "supervisor needs a python interpreter"
|
||||
depends on !BR2_PACKAGE_PYTHON
|
||||
depends on !BR2_PACKAGE_PYTHON3
|
||||
@@ -0,0 +1,29 @@
|
||||
#!/bin/sh
|
||||
|
||||
mkdir -p /var/log/supervisor
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
printf "Starting supervisord: "
|
||||
start-stop-daemon -S -q -p /var/run/supervisord.pid --exec /usr/bin/supervisord
|
||||
echo "done"
|
||||
;;
|
||||
stop)
|
||||
printf "Stopping supervisord: "
|
||||
start-stop-daemon -K -q -p /var/run/supervisord.pid
|
||||
echo "done"
|
||||
;;
|
||||
restart)
|
||||
"$0" stop
|
||||
sleep 5
|
||||
"$0" start
|
||||
;;
|
||||
reload)
|
||||
start-stop-daemon -K -q -p /var/run/supervisord.pid -s HUP
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart|reload}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
exit $?
|
||||
@@ -0,0 +1,4 @@
|
||||
# Locally calculated
|
||||
sha256 5b2b8882ec8a3c3733cce6965cc098b6d80b417f21229ab90b18fe551d619f90 supervisor-4.2.2.tar.gz
|
||||
sha256 7b8dbd54ab1543b07b2fc5f6f5ab50d89d26c1c4952af93a579d8c52c56b8de4 COPYRIGHT.txt
|
||||
sha256 4c35fda9f70bb7883fd94e5a4d5addd88ad1a6d5d15e21c9d17c4d96fdc5e369 LICENSES.txt
|
||||
@@ -0,0 +1,32 @@
|
||||
################################################################################
|
||||
#
|
||||
# supervisor
|
||||
#
|
||||
################################################################################
|
||||
|
||||
SUPERVISOR_VERSION = 4.2.2
|
||||
SUPERVISOR_SITE = https://files.pythonhosted.org/packages/d3/7f/c780b7471ba0ff4548967a9f7a8b0bfce222c3a496c3dfad0164172222b0
|
||||
SUPERVISOR_LICENSE = BSD-like, rdflib (http_client.py), PSF (medusa)
|
||||
SUPERVISOR_LICENSE_FILES = COPYRIGHT.txt LICENSES.txt
|
||||
SUPERVISOR_CPE_ID_VENDOR = supervisord
|
||||
SUPERVISOR_SETUP_TYPE = setuptools
|
||||
|
||||
define SUPERVISOR_INSTALL_CONF_FILES
|
||||
$(INSTALL) -d -m 755 $(TARGET_DIR)/etc/supervisor.d
|
||||
$(INSTALL) -D -m 644 package/supervisor/supervisord.conf \
|
||||
$(TARGET_DIR)/etc/supervisord.conf
|
||||
endef
|
||||
|
||||
SUPERVISOR_POST_INSTALL_TARGET_HOOKS += SUPERVISOR_INSTALL_CONF_FILES
|
||||
|
||||
define SUPERVISOR_INSTALL_INIT_SYSV
|
||||
$(INSTALL) -D -m 755 package/supervisor/S99supervisord \
|
||||
$(TARGET_DIR)/etc/init.d/S99supervisord
|
||||
endef
|
||||
|
||||
define SUPERVISOR_INSTALL_INIT_SYSTEMD
|
||||
$(INSTALL) -D -m 644 package/supervisor/supervisord.service \
|
||||
$(TARGET_DIR)/usr/lib/systemd/system/supervisord.service
|
||||
endef
|
||||
|
||||
$(eval $(python-package))
|
||||
@@ -0,0 +1,18 @@
|
||||
[unix_http_server]
|
||||
file = /var/run/supervisor.sock
|
||||
|
||||
[supervisord]
|
||||
logfile = /var/log/supervisor/supervisord.log
|
||||
logfile_maxbytes = 200KB
|
||||
logfile_backups = 1
|
||||
pidfile = /var/run/supervisord.pid
|
||||
childlogdir = /var/log/supervisor
|
||||
|
||||
[rpcinterface:supervisor]
|
||||
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
|
||||
|
||||
[supervisorctl]
|
||||
serverurl = unix:///var/run/supervisor.sock
|
||||
|
||||
[include]
|
||||
files = /etc/supervisor.d/*.conf
|
||||
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Process Control System
|
||||
After=syslog.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/supervisord -n
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user