daemonize.linux

Daemon implementation for GNU/Linux platform.

The main symbols you might be interested in: * sendSignalDynamic and endSignal - is easy way to send signals to created daemons * runDaemon - forks daemon process and places hooks that are described by Daemon template

Members

Functions

defaultLockFile
string defaultLockFile(string daemonName)

Returns local lock file that is used when no custom one is specified

defaultPidFile
string defaultPidFile(string daemonName)

Returns local pid file that is used when no custom one is specified

isCustomSignal
bool isCustomSignal(Signal sig)

Checks is sig is not actually built-in

isNativeSignal
bool isNativeSignal(Signal sig)

Checks is sig is actually built-in

Templates

buildDaemon
template buildDaemon(alias DaemonInfo)

Main template in the module that actually creates daemon process. DaemonInfo is a Daemon instance that holds name of the daemon and hooks for numerous Signals.

Meta

License

Subject to the terms of the MIT license, as written in the included LICENSE file.

Authors

NCrashed <ncrashed@gmail.com>