Ben Pfaff
b6eb6bc746
vlog: Add ability to log to an arbitrary file, and following related changes:
...
* New command-line options for configuring log files, hence:
- Centralized vlog usage messages.
* New vlogconf action for reopening log files.
* New vlogconf support for specifying a target by pidfile.
2008-10-23 14:07:25 -07:00
Ben Pfaff
ddbf6040e3
Make pkidir, rundir, logdir modifiable from "configure" command line.
...
Make "make" behave properly when these are changed by re-running
"configure", by putting their definitions into a generated file that
depends on Makefile.
2008-10-23 14:07:25 -07:00
Ben Pfaff
b50bbdf27d
Centralize daemon option processing and usage.
2008-10-16 16:16:36 -07:00
Ben Pfaff
eb0341e711
Rename utility functions to avoid partner namespace conflicts.
2008-09-04 13:53:27 -07:00
Ben Pfaff
e9ab3dbf6d
Make -P or --pidfile keep programs from running if already running.
2008-08-28 13:17:16 -07:00
Ben Pfaff
3059085830
Fix test for fcntl return value.
...
POSIX only says that -1 is an error; other return values have unspecified
meanings.
2008-08-28 13:15:32 -07:00
Ben Pfaff
a412f49bb0
New function make_pidfile_name().
...
The upcoming ofp-kill utility wants to use this.
2008-07-23 13:12:23 -07:00
Ben Pfaff
dae8a4a83c
Lock pidfiles with fcntl and create them atomically.
...
This makes it possible to verify that the program that created the
pidfile is still running.
2008-07-23 13:12:23 -07:00
Ben Pfaff
8f1f1132e5
Make set_pidfile() easier to use.
2008-07-22 13:56:26 -07:00
Ben Pfaff
f730dded18
Move Autoconf's macro definitions into config.h.
...
This makes "make" output slightly more readable.
2008-07-21 15:05:53 -07:00
Ben Pfaff
fe867d8d71
Add --detach and --pidfile options to daemons.
2008-06-13 13:03:51 -07:00