1
0
mirror of https://shylinux.com/x/ContextOS synced 2025-04-28 01:52:00 +08:00
ContextOS/etc/conf/rc_local.sh
2023-08-17 00:15:30 +08:00

8 lines
351 B
Bash

cd /home/shy/docker && ./dockerd --host unix://$PWD/docker.sock --pidfile $PWD/docker.pid --exec-root=$PWD/exec --data-root=$PWD/data --registry-mirror "https://ccr.ccs.tencentyun.com" &
contexts=${contexts:=/home/shy/contexts}
cd $contexts/usr/local/daemon/10000 && ./sbin/nginx -p $PWD
su - shy -c "cd $contexts && ./bin/ice.bin forever start &"