diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-05-27 15:39:44 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2020-06-23 15:26:37 -0700 |
commit | 9217ed1446b5c409f68274517b5e0ae5acab4ec5 (patch) | |
tree | 00386c336064e6a2015caad435ebe7896684403b /meta/recipes-core/runit/runit/0001-default-directory-for-services-on-Debian-is-etc-servi.diff | |
parent | 5e61ce4e2f78009accc5e329cf5264698b97e592 (diff) | |
download | openembedded-core-contrib-9217ed1446b5c409f68274517b5e0ae5acab4ec5.tar.gz |
runit: Add runit and related recipes
* Another init system, very small in size with application life
cycle management
* Add runit-services recipe for additional runit services from void linux
* socklog is a system/kernel logger
* Add socklog-services to provide additional logging services
* disable the chkshsgr tests in socklog
Running the chkhsgr test during cross compile fails
./chkshsgr || ( cat warn-shsgr; exit 1 )
Oops. Your getgroups() returned 0, and setgroups() failed; this means
that I can't reliably do my shsgr test. Please either ``make'' as root
or ``make'' while you're in one or more supplementary groups.
All OE based targets have working getgroups()/setgroups()
implementation, so its a safe assumption and therefore make the test
to be a dummy
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta/recipes-core/runit/runit/0001-default-directory-for-services-on-Debian-is-etc-servi.diff')
-rw-r--r-- | meta/recipes-core/runit/runit/0001-default-directory-for-services-on-Debian-is-etc-servi.diff | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/meta/recipes-core/runit/runit/0001-default-directory-for-services-on-Debian-is-etc-servi.diff b/meta/recipes-core/runit/runit/0001-default-directory-for-services-on-Debian-is-etc-servi.diff new file mode 100644 index 0000000000..afc1bc5564 --- /dev/null +++ b/meta/recipes-core/runit/runit/0001-default-directory-for-services-on-Debian-is-etc-servi.diff @@ -0,0 +1,87 @@ +From d99515f6c8427e5f1c8f252532df8858bdef1007 Mon Sep 17 00:00:00 2001 +From: Gerrit Pape <pape@smarden.org> +Date: Wed, 7 May 2008 23:51:16 +0000 +Subject: [PATCH] default directory for services on Debian is /etc/service/, + not /service/ + +--- + runit-2.1.2/man/runsv.8 | 4 ++-- + runit-2.1.2/man/runsvchdir.8 | 4 ++-- + runit-2.1.2/man/sv.8 | 4 ++-- + runit-2.1.2/src/sv.c | 2 +- + 4 files changed, 7 insertions(+), 7 deletions(-) + +diff --git a/runit-2.1.2/man/runsv.8 b/runit-2.1.2/man/runsv.8 +index 7c5abfc..75bc73a 100644 +--- a/runit-2.1.2/man/runsv.8 ++++ b/runit-2.1.2/man/runsv.8 +@@ -157,9 +157,9 @@ This command is ignored if it is given to + .IR service /log/supervise/control. + .P + Example: to send a TERM signal to the socklog-unix service, either do +- # sv term /service/socklog-unix ++ # sv term /etc/service/socklog-unix + or +- # printf t >/service/socklog-unix/supervise/control ++ # printf t >/etc/service/socklog-unix/supervise/control + .P + .BR printf (1) + usually blocks if no +diff --git a/runit-2.1.2/man/runsvchdir.8 b/runit-2.1.2/man/runsvchdir.8 +index f7f94dc..a5fc180 100644 +--- a/runit-2.1.2/man/runsvchdir.8 ++++ b/runit-2.1.2/man/runsvchdir.8 +@@ -27,13 +27,13 @@ with a symlink pointing to + .IR dir . + .P + Normally +-.I /service ++.I /etc/service + is a symlink to + .IR current , + and + .BR runsvdir (8) + is running +-.IR /service/ . ++.IR /etc/service/ . + .SH EXIT CODES + .B runsvchdir + prints an error message and exits 111 on error. +diff --git a/runit-2.1.2/man/sv.8 b/runit-2.1.2/man/sv.8 +index 7ed9852..fa56443 100644 +--- a/runit-2.1.2/man/sv.8 ++++ b/runit-2.1.2/man/sv.8 +@@ -30,7 +30,7 @@ If + .I service + doesn't start with a dot or slash and doesn't end with a slash, it is + searched in the default services directory +-.IR /service/ , ++.IR /etc/service/ , + otherwise relative to the current directory. + .P + .I command +@@ -232,7 +232,7 @@ This option implies + .TP + .B SVDIR + The environment variable $SVDIR overrides the default services directory +-.IR /service/ . ++.IR /etc/service/ . + .TP + .B SVWAIT + The environment variable $SVWAIT overrides the default 7 seconds to wait +diff --git a/runit-2.1.2/src/sv.c b/runit-2.1.2/src/sv.c +index 0125795..887e9d1 100644 +--- a/runit-2.1.2/src/sv.c ++++ b/runit-2.1.2/src/sv.c +@@ -32,7 +32,7 @@ + char *progname; + char *action; + char *acts; +-char *varservice ="/service/"; ++char *varservice ="/etc/service/"; + char **service; + char **servicex; + unsigned int services; +-- +2.0.1 + |