diff options
author | Cem Keylan <cem@ckyln.com> | 2020-04-01 13:38:21 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2020-04-01 13:38:21 +0300 |
commit | 0542a6c3987990b5baf6bf45f4d49074997671e9 (patch) | |
tree | 3bf115420265b3ba3b58e43ef70fe5c8dbd34ca5 /core/sysmgr/post-install | |
parent | b9609d25f141209c814a3473deb440d72dc72109 (diff) | |
download | repository-0542a6c3987990b5baf6bf45f4d49074997671e9.tar.gz |
sysmgr: add boot, shutdown scripts. add post-install message
Diffstat (limited to 'core/sysmgr/post-install')
-rwxr-xr-x | core/sysmgr/post-install | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/core/sysmgr/post-install b/core/sysmgr/post-install new file mode 100755 index 00000000..7141e3f3 --- /dev/null +++ b/core/sysmgr/post-install @@ -0,0 +1,30 @@ +#!/bin/sh -e + +cat <<EOF +[1mIMPORTANT:[m + + 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 [1mas root[m by doing, + [1msed -i 's/# //' /etc/init/sysmgr.boot /etc/init/sysmgr.pre.shutdown[m + + 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. + + [1mmkdir -p /etc/sysmgr + for service in /etc/sv/* ; do + cp $service/run /etc/sysmgr/${service##*/} + done[m + + You can then copy all the services you run in /var/service to + /var/sysmgr by doing, + + [1mfor service in /var/service/* ; do + ln -sv /etc/sysmgr/${service##*/} /var/sysmgr + done[m + +EOF |