Hot answers tagged linux
try: date -d "+ 10 minutes" The date command is quite flexible about the text that you can use. For instance: date -d "next Tuesday" And you can choose the output format as well, for instance if you want as seconds since epoch: date -d "3 weeks" +%s
There's nothing to fix. This is normal operation. When the logfile is rotated by logrotate, it tells rsyslog to close and re-open its logfile file handles by sending it a HUP signal. If rsyslog doesn't do that, then it will continue to write its log output to the OLD logfiles, not to the new ones because the file handles will still connect to the old ...
You recompile your kernel with CONFIG_CFS_BANDWIDTH=y. There is a feature request about this already.
The list API does not dynamically allocate any memory. I found this thing a bit puzzling, myself. Problem here is that Linux is written in C, not C++, but implements things in a quite object-oriented way, but in C it looks like inside out. It works as follows (this applies to several other Linux APIs, too, e.g. kobj): You define some struct, which should ...
It looks like all the memory has been allocated by you at that point, so all it's really doing is hooking up the pointers which are already allocated. The memory is already there, all it's doing is filling it in so there isn't any real way it can fail.
Use something more standard, monit. The configuration/scripting language is very simple, it is more standard, it allows to monitor several services, send alerts, even having a local web interface if need be. If in a large infra-structure consider in the medium term to implement a project for using an NMS like Nagios and SNMP. Here is an example of the ...
Only top voted, non community-wiki answers of a minimum length are eligible