lyadmin/perl-script/conf/lingyin.rc
2020-11-30 04:45:02 +00:00

18 lines
276 B
Bash

#!/bin/ksh
#
# lingyind
daemon="cd /tilde/lyadmin/ && . /tilde/lyadmin/venv/bin/activate && python3 /tilde/lyadmin/app.py &"
daemon_user="_lingyind"
. /etc/rc.d/rc.subr
pexp="python3 /tilde/lyadmin/app.py"
rc_reload=NO
rc_stop() {
pkill -f "^${pexp}"
}
rc_cmd $1