summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Adrian Perez [Wed, 4 Aug 2010 00:40:46 +0000 (02:40 +0200)]
Release v0.2
Adrian Perez [Wed, 4 Aug 2010 00:35:15 +0000 (02:35 +0200)]
dmon: Sleep second before exec'ing to prevent DoS
This will inconditionally sleep for one second before doing stream
redirection and exec() for spawned childs, to have some time before
fork+exec combos, thus providing some alleviation for possible DoS
attacks.
Adrian Perez [Wed, 4 Aug 2010 00:17:46 +0000 (02:17 +0200)]
util: Fix header to say "util" instead of "dmon-util"
Adrian Perez [Tue, 3 Aug 2010 21:01:09 +0000 (23:01 +0200)]
dmon: Print error message when no command is specified
If no command is given in the command line, issue an error and exit instead
of blindly trying to start a null command.
Adrian Perez [Tue, 3 Aug 2010 20:55:15 +0000 (22:55 +0200)]
dmon: Implement timeout for process running time
When a timeout is specified, with "-t SECONDS", then if the command takes
longer to complete, it will be terminated by sending the SIGTERM/SIGCONT
combo, and then respawned. This can be used to run processes that must be
enforced to keep their running time below a given value.
As a bonus, suffixes for the argument to "-t" may be given: (w)eeks, (d)ays,
(h)ours and (m)inutes.
Adrian Perez [Fri, 30 Jul 2010 21:17:51 +0000 (23:17 +0200)]
dmon: Implement -1 (run once) switch
If the program exits with success code (i.e. zero) it is not respawnd and
dmon will close itself. Otherwise the process is respawned as usual.
Adrian Perez [Fri, 30 Jul 2010 04:50:46 +0000 (06:50 +0200)]
Debian packaging files
Adrian Perez [Fri, 30 Jul 2010 04:39:38 +0000 (06:39 +0200)]
Add manual page for dmon
Adrian Perez [Fri, 30 Jul 2010 04:12:37 +0000 (06:12 +0200)]
dmon: Implement daemonization and PID file writing
* Now by default dmon will daemonize itself before launching its childs. The
"-n" option may be passed to stay in foreground.
* The "-p" option is now honored and the PID will be written to the
specified file.
Adrian Perez [Fri, 30 Jul 2010 03:44:02 +0000 (05:44 +0200)]
dlog: Do not create log file with execution bit set
Adrian Perez [Fri, 30 Jul 2010 03:41:09 +0000 (05:41 +0200)]
Avoid building debug functions
Adrian Perez [Fri, 30 Jul 2010 03:38:50 +0000 (05:38 +0200)]
Implement signal handling and process respawning
* Died processes are now respawned by default.
* Signals can now be passed to both the log command and the main command.
* Children processes are properly reaped.
Adrian Perez [Fri, 30 Jul 2010 02:12:30 +0000 (04:12 +0200)]
Migrate to new task_t control structure
A new task_t data type holds all information related to a process,
and a set of higher-level task_*() functions is added. Apart from
that cleanup, no additional functionality is added.
Adrian Perez [Fri, 30 Jul 2010 01:35:12 +0000 (03:35 +0200)]
Support omitting log file path on dlog
If a log file path is not given, then lines are printed back to standard
output. This may be useful to add timestamps to lines.
Adrian Perez [Fri, 30 Jul 2010 01:00:35 +0000 (03:00 +0200)]
Add dlog manual page
Adrian Perez [Fri, 30 Jul 2010 00:56:16 +0000 (02:56 +0200)]
Implement dlog utility
Adrian Perez [Fri, 30 Jul 2010 00:33:38 +0000 (02:33 +0200)]
Fix file headers, rename dmon-util.* -> util.*
Adrian Perez [Fri, 30 Jul 2010 00:29:25 +0000 (02:29 +0200)]
Add dsyslog manual page
Adrian Perez [Fri, 30 Jul 2010 00:15:00 +0000 (02:15 +0200)]
Rewrite code in terms of iolib.[hc]
This makes utilities not use the heavyweight stdio buffers from libc,
but a lighter version.
Adrian Perez [Fri, 30 Jul 2010 00:14:41 +0000 (02:14 +0200)]
Add support for @e/@E formatters in iolib.[hc]
Adrian Perez [Fri, 30 Jul 2010 00:14:10 +0000 (02:14 +0200)]
Add vformat() function to iolib.[hc]
Adrian Perez [Thu, 29 Jul 2010 23:57:14 +0000 (01:57 +0200)]
Proper indentation and modelines
Adrian Perez [Thu, 29 Jul 2010 23:53:18 +0000 (01:53 +0200)]
Close standard output after initialization
The standard output stream can be safely closed, because after
initialization (which could print messages to stdout when -h/-? are
passed) all possible messages are error messages, and those go to
standard error instead.
Adrian Perez [Thu, 29 Jul 2010 23:42:02 +0000 (01:42 +0200)]
Implementation of dsyslog
"dsyslog" will read lines from standard input, and then send each line to
the system logger.
Adrian Perez [Thu, 29 Jul 2010 22:32:55 +0000 (00:32 +0200)]
Expand tabs in indentation
Adrian Perez [Thu, 29 Jul 2010 22:28:21 +0000 (00:28 +0200)]
Initial import