mirror of
https://github.com/Akkadius/glass-isc-dhcp.git
synced 2025-07-31 01:24:56 +02:00
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:
parent
10102a6709
commit
3548965f08
14
README.md
14
README.md
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user