~carbslinux/repository

0542a6c3987990b5baf6bf45f4d49074997671e9 — Cem Keylan 1 year, 6 months ago b9609d2
sysmgr: add boot, shutdown scripts. add post-install message
M core/sysmgr/build => core/sysmgr/build +1 -0
@@ 1,3 1,4 @@
#!/bin/sh -e

make DESTDIR="$1" PREFIX=/usr install
install -Dm644 -t "$1/etc/init" sysmgr.boot sysmgr.pre.shutdown

M core/sysmgr/checksums => core/sysmgr/checksums +2 -0
@@ 1,1 1,3 @@
6e1545f718972d2926a6895c781ec968f459aa05ff9f5344bbbd94960712cc6c  0.2.0.tar.gz
3dfdcb5386796f5560e793ce992593fc9c074389c5dba9c4cadd5281cca6de03  sysmgr.boot
3b8da16b402ba7aa3a151d3a6a39a26f6335353930dca3a1857f13464eda7dfd  sysmgr.pre.shutdown

A core/sysmgr/files/sysmgr.boot => core/sysmgr/files/sysmgr.boot +1 -0
@@ 0,0 1,1 @@
# while :; do /usr/bin/sysmgr ; done &

A core/sysmgr/files/sysmgr.pre.shutdown => core/sysmgr/files/sysmgr.pre.shutdown +1 -0
@@ 0,0 1,1 @@
# for service in /var/sysmgr/* ; do [ -r "$service" ] && { svctl stop "${service##*/}" ; svctl kill "${service##*/}" ;} ; done

A core/sysmgr/post-install => core/sysmgr/post-install +30 -0
@@ 0,0 1,30 @@
#!/bin/sh -e

cat <<EOF
IMPORTANT:

  In order to enable sysmgr you need to
  uncomment the line on '/etc/init/sysmgr.boot'
  and '/etc/init/sysmgr.pre.shutdown'

  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

EOF

M core/sysmgr/sources => core/sysmgr/sources +2 -0
@@ 1,1 1,3 @@
https://github.com/cemkeylan/sysmgr/archive/0.2.0.tar.gz
files/sysmgr.boot
files/sysmgr.pre.shutdown

M core/sysmgr/version => core/sysmgr/version +1 -1
@@ 1,1 1,1 @@
0.2.0 1
0.2.0 2