Files

8 lines
346 B
Bash

#!/bin/bash
# hr2 daily-runner 启动脚本(cron 用)
cd /opt/data/skills/recruitment-resume-screener/scripts || exit 1
LOG=/opt/data/logs/recruitment/runner-hr2-$(date +%F).log
ACCOUNT=hr2 CDP_PORT=9225 nohup node daily-runner.js hr2 9225 >> "$LOG" 2>&1 &
echo $! > /opt/data/logs/recruitment/runner-hr2.pid
echo "hr2 runner started PID=$!"