scripts and tools to administer the lingy.in public unix / tilde
25개 이상의 토픽을 선택하실 수 없습니다.
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #!/bin/ksh
- #
- # lingyind
-
- #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="/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}"
- }
-
- rc_cmd $1
|