Update README.md - add path for Debian

the path for "forever" on Debian 11 is /usr/local/bin and not /usr /bin
This commit is contained in:
Kamahat 2023-01-02 23:59:08 +01:00 committed by GitHub
parent 10102a6709
commit 3548965f08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -211,14 +211,22 @@ service apparmor restart
</pre>
## Glass Process Keepalive
* To keep your server alive through reboots, possible crashes and process restarts, we need to use a process monitor and for simplicity we will use NodeJS's **Forever**. Forever is already installed during Glass installation. We will add it to our **crontab**
* To keep your server alive through reboots, possible crashes and process restarts, we need to use a process monitor and for simplicity we will use NodeJS's **Forever**. Forever is already installed during Glass installation (`npm install forever`). We will add it to our **crontab**
<pre>
```
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
</pre>
```
### Glass Process Keepalive for debian
```
crontab -l > mycrontab
echo "@reboot cd /opt/glass-isc-dhcp && /usr/local/bin/forever --minUptime 10000 --spinSleepTime 10000 -a -o ./logs/glass-process.log -e ./logs/glass-error.log ./bin/www" >> mycrontab
crontab mycrontab
rm mycrontab
```
## Secure your Server