From a7a3154c6e0f51ae2d73e784ee5bfb809ce8ef56 Mon Sep 17 00:00:00 2001 From: shy Date: Fri, 14 Feb 2025 00:48:11 +0800 Subject: [PATCH] opt some --- etc/local/2016.sh | 5 +++++ etc/local/2023.sh | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 etc/local/2016.sh diff --git a/etc/local/2016.sh b/etc/local/2016.sh new file mode 100644 index 00000000..5cba5f56 --- /dev/null +++ b/etc/local/2016.sh @@ -0,0 +1,5 @@ +# /etc/rc.local +# source /home/shy/2016-ContextOS/etc/local/2016.sh + +[ -d /tmp/nginx ] || mkdir /tmp/nginx; cd /opt/daemon/10000 && ./sbin/nginx -p $PWD +cd /var/lib/maddy; /usr/local/bin/maddy run &> /var/lib/maddy/boot.log & diff --git a/etc/local/2023.sh b/etc/local/2023.sh index dacd8321..7628a689 100644 --- a/etc/local/2023.sh +++ b/etc/local/2023.sh @@ -1,3 +1,6 @@ +# /etc/rc.local +# source /home/shy/2023-ContextOS/etc/local/2023.sh + [ -d /tmp/nginx ] || mkdir /tmp/nginx; cd /opt/daemon/10000 && ./sbin/nginx -p $PWD -su - mysql -c 'cd /opt/daemon/10001/ && ./bin/mysqld --basedir=./ --datadir=./data --plugin-dir=./lib/plugin --socket=mysqld.socket --log-error=mysqld.log --pid-file=mysqld.pid --port 10001 &' su - git -c 'GITEA_WORK_DIR=/var/lib/gitea/ /usr/local/bin/gitea web -c /etc/gitea/app.ini &' +su - mysql -c 'cd /opt/daemon/10001/ && ./bin/mysqld --basedir=./ --datadir=./data --plugin-dir=./lib/plugin --socket=mysqld.socket --log-error=mysqld.log --pid-file=mysqld.pid --port 10001 &'