devel/libdaemon 0.14nb2 NetBSD
C library that eases the writing of UNIX daemons
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- License
- gnu-lgpl-v2.1
- Categories
- devel
- Package size
- 24.2 KiB, 109.2 KiB installed
Description
libdaemon is a lightweight C library that eases the writing of UNIX daemons. It consists of the following parts:
* A wrapper around fork() which does the correct daemonization procedure of a process * A wrapper around syslog() for simpler and compatible log output to Syslog or STDERR * An API for writing PID files * An API for serializing UNIX signals into a pipe for usage with select() or poll() * An API for running subprocesses with STDOUT and STDERR redirected to syslog.
APIs like these are used in most daemon software available. It is not that simple to get it done right and code duplication is not a goal.
In the other systems
| System | Port | Version |
|---|---|---|
| NetBSD | devel/libdaemon | 0.14nb2 |
| FreeBSD | devel/libdaemon | 0.14_1 |
| OpenBSD | devel/libdaemon | 0.14p1 |
| DragonFly | devel/libdaemon | 0.14_1 |
| MidnightBSD | devel/libdaemon | 0.14_1 |
Install
Binary package:
pkgin install libdaemon
From pkgsrc:
cd /usr/pkgsrc/devel/libdaemon && make install clean