Compare commits
2 Commits
3d42f7f9ad
...
a341e8ccc4
Author | SHA1 | Date | |
---|---|---|---|
|
a341e8ccc4 | ||
|
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}"
|
||||
}
|
||||
|
@ -74,7 +74,7 @@ system("su $SVC_ACCT -c '. ./venv/bin/activate && pip3 install -r requirements.t
|
||||
system("cp ./perl-script/conf/lingyin.rc /etc/rc.d/lingyind");
|
||||
system("chmod 755 /etc/rc.d/lingyind");
|
||||
system("rcctl enable lingyind");
|
||||
exec("rcctl start lingyind");
|
||||
system("rcctl start lingyind");
|
||||
|
||||
system("pkg_add p5-JSON");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user