StuRa Diskussion:Server/SRS13/2015: Unterschied zwischen den Versionen
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, 12:52 Uhr
etherpad-lite ressourcen
- etherpad-lite allein ist schön schlank
- abiword dazu ... das wird fett
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