mailman.init 333 B

12345678910111213141516171819202122
  1. #!/bin/sh /etc/rc.common
  2. # Copyright (C) 2014 OpenWrt.org
  3. START=50
  4. STOP=50
  5. PYTHON=/usr/bin/python
  6. MAILMANHOME=/usr/local/mailman
  7. MAILMANCTL=$MAILMANHOME/bin/mailmanctl
  8. start() {
  9. #rm -f $MAILMANHOME/locks/*
  10. $PYTHON $MAILMANCTL -s -q start
  11. }
  12. stop() {
  13. $PYTHON $MAILMANCTL -q stop
  14. }
  15. restart() {
  16. $PYTHON $MAILMANCTL -q restart
  17. }