StuRa Diskussion:Server/SRS13/2015: Unterschied zwischen den Versionen

Aus Wiki StuRa HTW Dresden
Zur Navigation springen Zur Suche springen
Zeile 10: Zeile 10:
  start(){
  start(){
       echo "staring etherpad-lite ..." >2&
       echo "staring etherpad-lite ..." >2&
       /home/etherpad-lite/etherpad-lite/bin/run.sh&
       su -m etherpad-lite -c /home/etherpad-lite/etherpad-lite/bin/run.sh&
       echo "done" >2&
       echo "done" >2&
  }
  }

Version vom 2. Oktober 2011, 13:52 Uhr

etherpad-lite ressourcen

  • etherpad-lite allein ist schön schlank
  • abiword dazu ... das wird fett

JohannesSchneemann

ehterpad-lite ghetto rc script

  • und nochmal: funzt, ist aber nicht standard konform ... eher ein hässlicher hack
#!/bin/sh
start(){
      echo "staring etherpad-lite ..." >2&
      su -m etherpad-lite -c /home/etherpad-lite/etherpad-lite/bin/run.sh&
      echo "done" >2&
}
stop(){
      echo "stopping ehterpad-lite ..." >2&
      kill `ps -a | grep "node server.js" | grep -v grep | awk '{print $1}'`
      echo "done" >2&
}
case "$1" in
      start)
              start
              ;;
      stop)
              stop
              ;;
      restart)
              stop
              start
              ;;
      *)
              echo "USAGE: {start|stop|restart}" >2&
              exit 1
              ;;
esac
exit 0