This software is extremely out of date!
I recommend NOT using it.
Make sure Node.js is installed.
1. cd into /opt
cd /opt
2. GIT clone Glass
git clone https://github.com/Akkadius/glass-isc-dhcp.git
3. cd into /opt/glass-isc-dhcp
. Make a new directory called logs
.
cd /opt/glass-isc-dhcp
mkdir /opt/glass-isc-dhcp/logs
4. Change file permissions.
chmod u+x ./bin/ -R
chmod u+x *.sh
5. Use NPM to install.
npm install
npm install forever -g
npm start
To keep the server alive through reboots, possible crashes and process restarts, we'll use a process monitor - NodeJS's Forever. Forever is already installed during Glass installation. We will add it to our crontab
crontab -l > mycrontab
echo "@reboot cd /opt/glass-isc-dhcp && /usr/bin/forever --minUptime 10000 --spinSleepTime 10000 -a -o ./logs/glass-process.log -e ./logs/glass-error.log ./bin/www" >> mycrontab
crontab mycrontab
rm mycrontab