Size: 666
Comment:
|
Size: 713
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 12: | Line 12: |
HOST=dns.sedimap.pvt | HOST=host.example.net |
Line 20: | Line 20: |
# other seervices that may need restarting |
Check connection
Simple script to check connection to a host, that in case of failure asks for new IP address through DHCP.
Add entry to crond of account with privileges to get address through dhclient:
chmod 755 /<folder>/checkConnection.sh
- crontab -e
* * * * * /<folder>/checkConnection.sh
On Slackware the logger output should apper on /var/log/messages.