scripts and tools to administer the lingy.in public unix / tilde
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
276B

  1. #!/bin/ksh
  2. #
  3. # lingyind
  4. daemon="cd /tilde/lyadmin/ && . /tilde/lyadmin/venv/bin/activate && python3 /tilde/lyadmin/app.py &"
  5. daemon_user="_lingyind"
  6. . /etc/rc.d/rc.subr
  7. pexp="python3 /tilde/lyadmin/app.py"
  8. rc_reload=NO
  9. rc_stop() {
  10. pkill -f "^${pexp}"
  11. }
  12. rc_cmd $1