From 84fa2e68a0515f65dd1e9a2f27fb237370d507db Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Sat, 10 Oct 2020 12:48:16 +0300 Subject: sysmgr: switch to C version --- core/sysmgr/build | 3 ++- core/sysmgr/checksums | 5 ++--- core/sysmgr/files/sysmgr.boot | 2 +- core/sysmgr/files/sysmgr.pre.shutdown | 1 - core/sysmgr/message | 21 ++------------------- core/sysmgr/sources | 3 +-- core/sysmgr/version | 2 +- 7 files changed, 9 insertions(+), 28 deletions(-) delete mode 100644 core/sysmgr/files/sysmgr.pre.shutdown (limited to 'core/sysmgr') diff --git a/core/sysmgr/build b/core/sysmgr/build index d62e8832..15625a56 100755 --- a/core/sysmgr/build +++ b/core/sysmgr/build @@ -1,5 +1,6 @@ #!/bin/sh -e +make make DESTDIR="$1" PREFIX=/usr install + install -Dm644 sysmgr.boot "$1/etc/init/sysmgr.boot" -install -Dm644 sysmgr.pre.shutdown "$1/etc/init/sysmgr.pre.shutdown" diff --git a/core/sysmgr/checksums b/core/sysmgr/checksums index 589c5543..1a0fe90d 100644 --- a/core/sysmgr/checksums +++ b/core/sysmgr/checksums @@ -1,3 +1,2 @@ -7d5819898203e3f208a3c1edb9b7f3586a9c41dcc9c0ebaa79304fc6f8f3b399 0.3.0.tar.gz -3dfdcb5386796f5560e793ce992593fc9c074389c5dba9c4cadd5281cca6de03 sysmgr.boot -4aa52c3746f17dd843ee88370780a6614a1a868f5b745236cfe426e332d8bb29 sysmgr.pre.shutdown +9f536dfe5481aaa849decd50e877a59c8c30ad795c251b2fa8dfd11f0d6ea8de sm-0.1.0.tar.gz +aa84fc41d182ead50521c62a9738f2246e500d33eb7f5e2487e38ed0bab0e9e4 sysmgr.boot diff --git a/core/sysmgr/files/sysmgr.boot b/core/sysmgr/files/sysmgr.boot index 39ba1729..a8eb8421 100644 --- a/core/sysmgr/files/sysmgr.boot +++ b/core/sysmgr/files/sysmgr.boot @@ -1 +1 @@ -# while :; do /usr/bin/sysmgr ; done & +# respawn sysmgr & diff --git a/core/sysmgr/files/sysmgr.pre.shutdown b/core/sysmgr/files/sysmgr.pre.shutdown deleted file mode 100644 index 01ce6b4b..00000000 --- a/core/sysmgr/files/sysmgr.pre.shutdown +++ /dev/null @@ -1 +0,0 @@ -# for service in /var/sysmgr/* ; do [ -r "$service" ] && { svctl stop "${service##*/}" ; svctl kill "${service##*/}" ;} ; done diff --git a/core/sysmgr/message b/core/sysmgr/message index 85ea0f6d..854dbb4d 100644 --- a/core/sysmgr/message +++ b/core/sysmgr/message @@ -1,25 +1,8 @@ IMPORTANT: - In order to enable sysmgr you need to - uncomment the line on '/etc/init/sysmgr.boot' - and '/etc/init/sysmgr.pre.shutdown' + In order to enable sysmgr you need to uncomment the line on + '/etc/init/sysmgr.boot'. You can do this as root by doing, sed -i 's/# //' /etc/init/sysmgr.boot /etc/init/sysmgr.pre.shutdown - Carbs packages now come with sysmgr services by default, - but didn't have a release bump to avoid a rebuild just to - get sysmgr services. You can manually copy all your sysmgr - services with the following command. - - mkdir -p /etc/sysmgr - for service in /etc/sv/* ; do - cp \$service/run /etc/sysmgr/\${service##*/} - done - - You can then copy all the services you run in /var/service to - /var/sysmgr by doing, - - for service in /var/service/* ; do - ln -sv /etc/sysmgr/\${service##*/} /var/sysmgr - done diff --git a/core/sysmgr/sources b/core/sysmgr/sources index 534e04ef..c8887641 100644 --- a/core/sysmgr/sources +++ b/core/sysmgr/sources @@ -1,3 +1,2 @@ -https://github.com/cemkeylan/sysmgr/archive/0.3.0.tar.gz +https://git.ckyln.com/archive/sm/sm-0.1.0.tar.gz files/sysmgr.boot -files/sysmgr.pre.shutdown diff --git a/core/sysmgr/version b/core/sysmgr/version index 19de110f..6c5d3836 100644 --- a/core/sysmgr/version +++ b/core/sysmgr/version @@ -1 +1 @@ -0.3.0 1 +0.1.0 1 -- cgit v1.2.3