From bfe181ec1e1d9400fbac4d357da9f39bd3db0902 Mon Sep 17 00:00:00 2001 From: shy Date: Fri, 1 Dec 2023 23:33:41 +0800 Subject: [PATCH] add rc_local.sh --- etc/conf/rc_local.sh | 7 +++++++ etc/init.shy | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 etc/conf/rc_local.sh diff --git a/etc/conf/rc_local.sh b/etc/conf/rc_local.sh new file mode 100644 index 00000000..5dae2ac7 --- /dev/null +++ b/etc/conf/rc_local.sh @@ -0,0 +1,7 @@ +#!/bin/sh +# vi /etc/rc.local +# source /home/shy/contexts/etc/conf/rc_local.sh +# source /home/shy/contexts/usr/local/work/20230511-nginx-story/etc/conf/rc_local.sh + +CTX_ROOT=${CTX_ROOT:=/home/shy/contexts} +su - shy -c "cd $CTX_ROOT && ./bin/ice.bin forever start &" diff --git a/etc/init.shy b/etc/init.shy index 991fe687..252f8c92 100644 --- a/etc/init.shy +++ b/etc/init.shy @@ -1,12 +1,12 @@ ~web config dream binary "https://2021.shylinux.com/chat/pod/" dream create name "20210308-sshd" icon usr/icons/ssh.png repos `https://shylinux.com/x/sshd` - dream create name "20230511-golang-story" icon usr/icons/go.png repos `https://shylinux.com/x/golang-story` - dream create name "20230511-docker-story" icon src/client/docker.png repos `https://shylinux.com/x/docker-story` dream create name "20230511-linux-story" icon src/linux.png repos `https://shylinux.com/x/linux-story` - dream create name "20230511-nginx-story" icon src/server/nginx.png repos `https://shylinux.com/x/nginx-story` + dream create name "20230511-nginx-story" icon src/server/nginx.png repos `https://shylinux.com/x/nginx-story` restart always + dream create name "20230511-docker-story" icon src/client/docker.png repos `https://shylinux.com/x/docker-story` restart always dream create name "20230511-redis-story" icon src/client/redis.png repos `https://shylinux.com/x/redis-story` dream create name "20230511-mysql-story" icon src/studio/mysql.png repos `https://shylinux.com/x/mysql-story` + dream create name "20230511-golang-story" icon usr/icons/go.png repos `https://shylinux.com/x/golang-story` dream create name "20230913-matrix-story" icon src/matrix/matrix.png repos `https://shylinux.com/x/matrix-story` dream config web.wiki.portal web.chat.macos.desktop web.code.vimer ~web.code