.daemon_wrapper
Package: WA2L/edrc 1.5.57
Section: General Commands (1)
Updated: 07 May 2023
Index
Return to Main Contents
NAME
daemon_wrapper - wrap daemons written in Bourne shell
SYNOPSIS
edrc/bin/daemon_command
->
.daemon_wrapper
AVAILABILITY
WA2L/edrc
DESCRIPTION
start commands that run as daemons out of the
edrc/lib/daemon
directory.
The
daemon_command
is started with the directory first changed to root
(/)
if
PWDPRESERVE=daemon_command
is not set in the
daemon_command.
The
.daemon_wrapper
command is used for two purposes:
- 1)
-
start a command from the root
(/)
working directory.
- 2)
-
allow multiple versions of the same command to be present in the
lib/daemon/
directory without to pollute the
bin/
directory with all the symbolic links.
Typically commands that need to be present in different versions
simultaneously are commands having long run times, daemons or
commands for special purposes, where the program might run during
a patch update of the package.
Examples for daemon type commands are:
logcheckd(1m),
job(1)
and
passwdsyncd(1m).
An example for a long running program is:
lots(1m).
An example for a special purpose program is:
patchinstall(1m).
OPTIONS
-
ENVIRONMENT
-
EXIT STATUS
- 101
-
Bourne shell not found in any of the directories:
/bin,
/sbin
or
/usr/local/bin.
- 102
-
program
edrc/lib/daemon/daemon_command
does not exist.
- 103
-
user calling the command has no permission to access/execute
the called
daemon_command.
- 107
-
direct call of
.daemon_wrapper
not allowed.
FILES
- lib/daemon/
-
location of the commands started as daemons.
EXAMPLES
-
SEE ALSO
edrcintro(1),
cmdlist(1m),
patchinstall(1m)
NOTES
The
.daemon_wrapper
command is one of the main reasons, why commands in the
WA2L/edrc package do not have to be stopped during a patch installation.
BUGS
-
AUTHOR
daemon_wrapper was developed by Christian Walther. Send suggestions
and bug reports to wa2l@users.sourceforge.net .
COPYRIGHT
Copyright © 2015
Christian Walther
This is free software; see
edrc/doc/COPYING
for copying conditions. There is ABSOLUTELY NO WARRANTY; not
even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
This document was created by man2html
using the manual pages.
Time: 00:13:59 GMT, March 08, 2025