tcms 323 B

123456
  1. #!/bin/bash
  2. [[ -e run/tcms.pid ]] && pkill -F run/tcms.pid
  3. sudo www/server.psgi --listen run/tcms.sock --group www-data --user $USER --daemonize --pid run/tcms.pid
  4. #XXX Net::Server does not expect to run as a user other than that of the webserver
  5. sudo chmod 0770 run/tcms.sock
  6. echo "tCMS running as PID "`cat run/tcms.pid`