lingyin.rc - now uses lyctl.sh to start
This commit is contained in:
parent
3d42f7f9ad
commit
604f75afc8
@ -2,14 +2,24 @@
|
||||
#
|
||||
# lingyind
|
||||
|
||||
daemon="cd /tilde/lyadmin/ && . /tilde/lyadmin/venv/bin/activate && python3 /tilde/lyadmin/app.py &"
|
||||
#daemon="cd /tilde/lyadmin/ && . /tilde/lyadmin/venv/bin/activate && python3 /tilde/lyadmin/app.py &"
|
||||
daemon="/tilde/lyadmin/perl-script/conf/lyctl.sh"
|
||||
daemon_user="_lingyind"
|
||||
|
||||
. /etc/rc.d/rc.subr
|
||||
|
||||
pexp="python3 /tilde/lyadmin/app.py"
|
||||
#pexp="python3 /tilde/lyadmin/app.py"
|
||||
pexp="/tilde/lyadmin/venv/bin/python3 /tilde/lyadmin/app.py"
|
||||
rc_reload=NO
|
||||
|
||||
rc_start() {
|
||||
${daemon} start
|
||||
}
|
||||
|
||||
rc_check(){
|
||||
pgrep -f "^${pexp}" > /dev/null
|
||||
}
|
||||
|
||||
rc_stop() {
|
||||
pkill -f "^${pexp}"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user