dmon:dmon.git
11 years agoDebian packaging files v0.1
Adrian Perez [Fri, 30 Jul 2010 04:50:46 +0000 (06:50 +0200)]
Debian packaging files

11 years agoAdd manual page for dmon
Adrian Perez [Fri, 30 Jul 2010 04:39:38 +0000 (06:39 +0200)]
Add manual page for dmon

11 years agodmon: Implement daemonization and PID file writing
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.

11 years agodlog: Do not create log file with execution bit set
Adrian Perez [Fri, 30 Jul 2010 03:44:02 +0000 (05:44 +0200)]
dlog: Do not create log file with execution bit set

11 years agoAvoid building debug functions
Adrian Perez [Fri, 30 Jul 2010 03:41:09 +0000 (05:41 +0200)]
Avoid building debug functions

11 years agoImplement signal handling and process respawning
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.

11 years agoMigrate to new task_t control structure
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.

11 years agoSupport omitting log file path on dlog
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.

11 years agoAdd dlog manual page
Adrian Perez [Fri, 30 Jul 2010 01:00:35 +0000 (03:00 +0200)]
Add dlog manual page

11 years agoImplement dlog utility
Adrian Perez [Fri, 30 Jul 2010 00:56:16 +0000 (02:56 +0200)]
Implement dlog utility

11 years agoFix file headers, rename dmon-util.* -> util.*
Adrian Perez [Fri, 30 Jul 2010 00:33:38 +0000 (02:33 +0200)]
Fix file headers, rename dmon-util.* -> util.*

11 years agoAdd dsyslog manual page
Adrian Perez [Fri, 30 Jul 2010 00:29:25 +0000 (02:29 +0200)]
Add dsyslog manual page

11 years agoRewrite code in terms of iolib.[hc]
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.

11 years agoAdd support for @e/@E formatters in iolib.[hc]
Adrian Perez [Fri, 30 Jul 2010 00:14:41 +0000 (02:14 +0200)]
Add support for @e/@E formatters in iolib.[hc]

11 years agoAdd vformat() function to iolib.[hc]
Adrian Perez [Fri, 30 Jul 2010 00:14:10 +0000 (02:14 +0200)]
Add vformat() function to iolib.[hc]

11 years agoProper indentation and modelines
Adrian Perez [Thu, 29 Jul 2010 23:57:14 +0000 (01:57 +0200)]
Proper indentation and modelines

11 years agoClose standard output after initialization
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.

11 years agoImplementation of dsyslog
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.

11 years agoExpand tabs in indentation
Adrian Perez [Thu, 29 Jul 2010 22:32:55 +0000 (00:32 +0200)]
Expand tabs in indentation

11 years agoInitial import
Adrian Perez [Thu, 29 Jul 2010 22:28:21 +0000 (00:28 +0200)]
Initial import