Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 18 lines (13 sloc) 278 Bytes
#!/bin/bash
ps waux | grep node | grep -v grep
echo "stopping ..."
if [ "$(id -u)" != "0" ]; then
sudo forever stopall
fi
forever stopall
sleep 3
ps waux | grep node | grep -v grep
sleep 1
cp log.txt log-$(date +%s).txt
cd etherpad-lite/node
cp log.txt log-$(date +%s).txt