Hot answers tagged

1

In man page of dnsmasq there is a option saying -l, --dhcp-leasefile=<path> Use the specified file to store DHCP lease information. So, you can use a file to log it. And the format of the file is: 946689575 00:00:00:00:00:05 192.168.1.155 wdt 01:00:00:00:00:00:05 946689522 00:00:00:00:00:04 192.168.1.237 * 01:00:00:00:00:00:04 946689351 00:...


1

The bigger question at play is to setup a method to figure out what is happening to the machine in the first place. During those lockups, are there spikes in memory/network? Can you ask your VPS provider is there is a noisy neighbor on your node? What do you see in your access logs - is it Google scanning you and causing a ton of traffic all at once? If you ...


1

You can edit the file, but the entries added to the file while you edit it are lost, because the editor loads the log file into memory, and saves the file from memory to disk after editing. However, you can move the log file to another file with mv command, reload webserver, and then edit the other file. This way no entries are lost. Webserver starts to ...


1

In theory you could open a process which opens the socket, forks and each of the clients can then read from the socket. But the end result is probably not what you want. Since every read will remove the data from the socket buffer only one of the processes will get the data, i.e. depending on the scheduling sometimes the first child and sometimes the second ...



Only top voted, non community-wiki answers of a minimum length are eligible