- 设置日志目录和PID文件路径 - 使用forever守护进程运行pnpm start命令 - 指定应用唯一标识符和端口4010
@@ -0,0 +1,7 @@
#!/bin/sh
export LOG=/var/log/nodejs/or_r
export PID=$LOG/forever.pid
export UID_TAG=or_r
forever start -l $LOG/access.log -o $LOG/out.log -e $LOG/err.log -a --uid $UID_TAG --pidFile $PID -c "pnpm start -p 4010" ./
The note is not visible to the blocked user.