1
0
mirror of https://shylinux.com/x/ContextOS synced 2025-04-25 16:58:06 +08:00
ContextOS/etc/conf/rc_local.sh
2022-08-28 18:15:23 +08:00

9 lines
492 B
Bash

contexts=${contexts:=/home/shy/contexts}
cd $contexts/usr/local/daemon/10000 && ./sbin/nginx -p $PWD
cd $contexts/usr/install/docker && dockerd --host unix://$PWD/docker.sock --pidfile $PWD/docker.pid --exec-root=$PWD/exec --data-root=$PWD/data --registry-mirror http://hub-mirror.c.163.com
su - shy -c "cd $contexts && ./bin/ice.bin forever start &"
su - shy -c "cd $contexts/usr/local/work/20220815-repos-server/ && ./bin/ice.bin forever start dev shy port 9030 nodename repos-server &"