A collection of tools for managing UNIX services
Clone or download
Latest commit b40600d Oct 14, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
debian +x debian/rules Jan 8, 2012
rts.tests rts: Add a test for the execution of the "notify" script Oct 13, 2018
.gitignore setuser: New program to setenv, setuid, and chdir in one Nov 11, 2014
BIN setuser: New program to setenv, setuid, and chdir in one Nov 11, 2014
CHANGES Bump version to 1.10 Oct 14, 2018
CHANGES.djb Rename the old CHANGES file to CHANGES.djb Jun 3, 2010
EXTRADIST Leave out the devel bits from the dist tarball Jul 9, 2010
LICENSE Bump copyright year to 2014 Apr 1, 2014
MAN setuser: New program to setenv, setuid, and chdir in one Nov 11, 2014
README Bump copyright year to 2014 Apr 1, 2014
TODO svc, supervise: Support 'l' option to explicitly control the main ser… Feb 21, 2011
VERSION Bump version to 1.10 Oct 14, 2018
alloc.c Add proper prototypes for alloc* functions Jun 14, 2010
alloc.h Add proper prototypes for alloc* functions Jun 14, 2010
alloc_re.c Add proper prototypes for alloc* functions Jun 14, 2010
buffer.c Initial commit May 7, 2010
buffer.h buffer: Add buffer_gets line reading function Mar 21, 2014
buffer_0.c Initial commit May 7, 2010
buffer_1.c Initial commit May 7, 2010
buffer_2.c Initial commit May 7, 2010
buffer_copy.c Add buffer_copy object from other public domain DJB source Jun 29, 2010
buffer_copyline.c buffer: Add a buffer_copyline function, to copy everything up to a sp… Mar 21, 2014
buffer_get.c Initial commit May 7, 2010
buffer_gets.c buffer: Add buffer_gets line reading function Mar 21, 2014
buffer_put.c Remove empty if statement in buffer_put.c Jul 8, 2010
buffer_read.c Initial commit May 7, 2010
buffer_write.c Initial commit May 7, 2010
byte.h byte*: Wrap standard C library functions, they're faster Mar 20, 2014
byte=l str: Use standard library replacements for str_diff and str_len Mar 21, 2014
byte_chr.c byte*: Wrap standard C library functions, they're faster Mar 20, 2014
byte_rchr.c byte_rchr: Eliminate warning about implicit declaration of memrchr Oct 13, 2018
chkshsgr.c Eliminate all harmless compiler warnings (at least on my system) Jan 28, 2011
chkshsgr=x Switch to an automatically generated Makefile May 12, 2010
choose.do Switch to an automatically generated Makefile May 12, 2010
choose.sh Initial commit May 7, 2010
clean.do Make clean depend on TARGETS so that gets included in the dist tarball Jun 13, 2010
closeonexec.c Rename coe to closeonexec Jun 12, 2010
closeonexec.h Rename coe to closeonexec Jun 12, 2010
compile.do Switch to an automatically generated Makefile May 12, 2010
conf-bin Add installer program and instructions Jun 29, 2010
conf-cc Eliminate more compile warnings. Jul 8, 2010
conf-ld Initial commit May 7, 2010
conf-man Add installer program and instructions Jun 29, 2010
conf-supervise Expand note in conf-supervise Jun 20, 2010
conf_supervise.c.do supervise: Add a conf-supervise control and svpath module Jun 12, 2010
deepsleep.c Initial commit May 7, 2010
deepsleep.h Initial commit May 7, 2010
default.8.do Add framework for doing substitutions in man pages Jun 16, 2010
default.a.do Switch to an automatically generated Makefile May 12, 2010
default.do Portability fix: Avoid the use of test -e Oct 9, 2018
default.o.do Switch to an automatically generated Makefile May 12, 2010
direntry.h.do Switch to an automatically generated Makefile May 12, 2010
direntry.h1 Initial commit May 7, 2010
direntry.h2 Initial commit May 7, 2010
dosubst.do Add framework for doing substitutions in man pages Jun 16, 2010
env.c Initial commit May 7, 2010
env.h Initial commit May 7, 2010
envdir.8 setuser: New program to setenv, setuid, and chdir in one Nov 11, 2014
envdir.c envdir: Add support for adding a prefix to variable names Sep 30, 2014
envdir=x Switch to an automatically generated Makefile May 12, 2010
envini.8 setuser: New program to setenv, setuid, and chdir in one Nov 11, 2014
envini.c envini: New program to read environment variables from an INI file Sep 30, 2014
envini=x envini: New program to read environment variables from an INI file Sep 30, 2014
envuidgid.8 setuser: New program to setenv, setuid, and chdir in one Nov 11, 2014
envuidgid.c strerr: Include ": " separator automatically in sys error message Aug 20, 2013
envuidgid=x Switch to an automatically generated Makefile May 12, 2010
error.c Initial commit May 7, 2010
error.h Fix errno definition in error.h by including <errno.h> May 7, 2010
error_str.c Initial commit May 7, 2010
fd.h Initial commit May 7, 2010
fd_copy.c Initial commit May 7, 2010
fd_move.c Initial commit May 7, 2010
fghack.8 setuser: New program to setenv, setuid, and chdir in one Nov 11, 2014
fghack.c fix gcc-7.3 warnings Sep 27, 2018
fghack=x Switch to an automatically generated Makefile May 12, 2010
fifo.c Initial commit May 7, 2010
fifo.h Initial commit May 7, 2010
find-systype.sh Initial commit May 7, 2010
fmt.h Initial commit May 7, 2010
fmt_uint.c Remove the "register" anachronism Jun 14, 2010
fmt_uint0.c Initial commit May 7, 2010
fmt_ulong.c Remove the "register" anachronism Jun 14, 2010
gen_alloc.h Initial commit May 7, 2010
gen_allocdefs.h Remove the "register" anachronism Jun 14, 2010
getln.c Add getln objects from other public domain DJB sources Jun 29, 2010
getln.h Add getln objects from other public domain DJB sources Jun 29, 2010
getln2.c getln2: Fix the error return case (unsigned n can never be < 0) Apr 1, 2014
getln=l Add getln objects from other public domain DJB sources Jun 29, 2010
hasattribute.h.do Add a sysdep for GCC attributes, to note that strerr_die is noreturn. Jul 8, 2010
hasattribute.h1 Add a sysdep for GCC attributes, to note that strerr_die is noreturn. Jul 8, 2010
hasattribute.h2 Add a sysdep for GCC attributes, to note that strerr_die is noreturn. Jul 8, 2010
hasflock.h.do Switch to an automatically generated Makefile May 12, 2010
hasflock.h1 Initial commit May 7, 2010
hasflock.h2 Initial commit May 7, 2010
hasmemrchr.h.do byte*: Wrap standard C library functions, they're faster Mar 20, 2014
hasmemrchr.h1 byte*: Wrap standard C library functions, they're faster Mar 20, 2014
hasmemrchr.h2 byte_rchr: Eliminate warning about implicit declaration of memrchr Oct 13, 2018
hasmkffo.h.do Switch to an automatically generated Makefile May 12, 2010
hasmkffo.h1 Initial commit May 7, 2010
hasmkffo.h2 Initial commit May 7, 2010
hassgact.h.do Switch to an automatically generated Makefile May 12, 2010
hassgact.h1 Initial commit May 7, 2010
hassgact.h2 Initial commit May 7, 2010
hassgprm.h.do Switch to an automatically generated Makefile May 12, 2010
hassgprm.h1 Initial commit May 7, 2010
hassgprm.h2 Initial commit May 7, 2010
hasshsgr.h.do Switch to an automatically generated Makefile May 12, 2010
hasshsgr.h1 Initial commit May 7, 2010
hasshsgr.h2 Initial commit May 7, 2010
haswaitp.h.do Switch to an automatically generated Makefile May 12, 2010
haswaitp.h1 Initial commit May 7, 2010
haswaitp.h2 Initial commit May 7, 2010
install.do Add installer program and instructions Jun 29, 2010
installer.c Eliminate all harmless compiler warnings (at least on my system) Jan 28, 2011
installer=x Add installer program and instructions Jun 29, 2010
iopause.c Initial commit May 7, 2010
iopause.h.do Fix missing dependency in iopause.h Jun 28, 2010
iopause.h1 Initial commit May 7, 2010
iopause.h2 Initial commit May 7, 2010
it.do Add framework for doing substitutions in man pages Jun 16, 2010
load.do Switch to an automatically generated Makefile May 12, 2010
lock.h Initial commit May 7, 2010
lock_ex.c lock_ex.c: Include unistd.h for lockf(3) Sep 3, 2010
lock_exnb.c Initial commit May 7, 2010
makedist Fix a problem with the rts.tests files in the dist tarball Jul 29, 2010
makelib.do Switch to an automatically generated Makefile May 12, 2010
makemake Portability fix: Avoid the use of test -e Oct 9, 2018
man.do envini: New program to read environment variables from an INI file Sep 30, 2014
match.c match.c: Add support for fnmatch based patterns (not yet used) Mar 18, 2014
match.h match.c: Add support for fnmatch based patterns (not yet used) Mar 18, 2014
matchtest.c matchtest: Add support and tests for fnmatch matches Mar 18, 2014
matchtest=x Switch to an automatically generated Makefile May 12, 2010
multilog.8 supervise: fix initial "down" status Sep 21, 2018
multilog.c multilog: Read/write whole lines at a time Mar 21, 2014
multilog=x Switch to an automatically generated Makefile May 12, 2010
ndelay.h Initial commit May 7, 2010
ndelay_off.c Initial commit May 7, 2010
ndelay_on.c Initial commit May 7, 2010
open.h Initial commit May 7, 2010
open_append.c Initial commit May 7, 2010
open_read.c Initial commit May 7, 2010
open_trunc.c Initial commit May 7, 2010
open_write.c Initial commit May 7, 2010
openreadclose.c Initial commit May 7, 2010
openreadclose.h Initial commit May 7, 2010
pathexec.h Initial commit May 7, 2010
pathexec_env.c Initial commit May 7, 2010
pathexec_run.c Eliminated a few compile warnings. Jul 8, 2010
pgrphack.8 setuser: New program to setenv, setuid, and chdir in one Nov 11, 2014
pgrphack.c strerr: Include ": " separator automatically in sys error message Aug 20, 2013
pgrphack=x Switch to an automatically generated Makefile May 12, 2010
print-ar.sh Initial commit May 7, 2010
print-cc.sh Initial commit May 7, 2010
print-ld.sh Initial commit May 7, 2010
programs.do setuser: New program to setenv, setuid, and chdir in one Nov 11, 2014
prot.c setuidgid: Add -s option to set account's supplementary gids Sep 3, 2010
prot.h setuidgid: Add -s option to set account's supplementary gids Sep 3, 2010
readclose.c Initial commit May 7, 2010
readclose.h Initial commit May 7, 2010
readproctitle.8 setuser: New program to setenv, setuid, and chdir in one Nov 11, 2014
readproctitle.c Initial commit May 7, 2010
readproctitle=x Switch to an automatically generated Makefile May 12, 2010
rts.do Break the rts self-test system into a set of smaller files Jun 28, 2010
rts.exp.do Break the rts self-test system into a set of smaller files Jun 28, 2010
rts.sh.do Break the rts self-test system into a set of smaller files Jun 28, 2010
scan.h Initial commit May 7, 2010
scan_8long.c Copy in scan_8long object from public domain ezmlm sources Jun 29, 2010
scan_ulong.c Remove the "register" anachronism Jun 14, 2010
seek.h Initial commit May 7, 2010
seek_set.c Fix a warning in seek_set.c Jun 18, 2010
select.h.do Switch to an automatically generated Makefile May 12, 2010
select.h1 Initial commit May 7, 2010
select.h2 Initial commit May 7, 2010
setlock.8 setuser: New program to setenv, setuid, and chdir in one Nov 11, 2014
setlock.c strerr: Include ": " separator automatically in sys error message Aug 20, 2013
setlock=x Switch to an automatically generated Makefile May 12, 2010
setuidgid.8 setuser: New program to setenv, setuid, and chdir in one Nov 11, 2014
setuidgid.c strerr: Include ": " separator automatically in sys error message Aug 20, 2013
setuidgid=x Switch to an automatically generated Makefile May 12, 2010
setuser.8 setuser: New program to setenv, setuid, and chdir in one Nov 11, 2014
setuser.c setuser: New program to setenv, setuid, and chdir in one Nov 11, 2014
setuser=x setuser: New program to setenv, setuid, and chdir in one Nov 11, 2014
sgetopt.c Initial commit May 7, 2010
sgetopt.h Initial commit May 7, 2010
sig.c ensure clean service shutdown and clean ^C, ^Z behavior. Mar 24, 2014
sig.h ensure clean service shutdown and clean ^C, ^Z behavior. Mar 24, 2014
sig_block.c Initial commit May 7, 2010
sig_catch.c Initial commit May 7, 2010
sig_pause.c Initial commit May 7, 2010
sleeper.c fix gcc-7.3 warnings Sep 27, 2018
sleeper=x sleeper: Catch and report more signal names Nov 9, 2010
softlimit.8 softlimit: Add support for resetting limits Feb 3, 2016
softlimit.c softlimit: Add support for resetting limits Feb 3, 2016
softlimit=x Switch to an automatically generated Makefile May 12, 2010
str.h str: Use standard library replacements for str_diff and str_len Mar 21, 2014
str_chr.c fix gcc-7.3 warnings Sep 27, 2018
str_start.c Remove the "register" anachronism Jun 14, 2010
stralloc.h Make stralloc_append take a non-pointer character Jun 14, 2010
stralloc_append.c Rename stralloc_* files to match their function name Jun 13, 2010
stralloc_cat.c Initial commit May 7, 2010
stralloc_catb.c Initial commit May 7, 2010
stralloc_cats.c Initial commit May 7, 2010
stralloc_copy.c Rename stralloc_* files to match their function name Jun 13, 2010
stralloc_copyb.c Rename stralloc_* files to match their function name Jun 13, 2010
stralloc_copys.c Rename stralloc_* files to match their function name Jun 13, 2010
stralloc_ready.c Rename stralloc_* files to match their function name Jun 13, 2010
strerr.h strerr: Add strerr_warn#sys macros to parallel strerr_die#sys Aug 20, 2013
strerr_die.c Initial commit May 7, 2010
strerr_sys.c strerr: Include ": " separator automatically in sys error message Aug 20, 2013
subgetopt.c Initial commit May 7, 2010
subgetopt.h Initial commit May 7, 2010
supervise.8.in envini: New program to read environment variables from an INI file Sep 30, 2014
supervise.c supervise: Consolidate all service kill operations into single function Oct 9, 2018
supervise=x supervise: Add a conf-supervise control and svpath module Jun 12, 2010
svc.8.in envini: New program to read environment variables from an INI file Sep 30, 2014
svc.c disable process group signaling with `svc -=`. Mar 24, 2014
svc=x svc: Add support for $SUPERVISEDIR Jun 12, 2010
svok.8.in envini: New program to read environment variables from an INI file Sep 30, 2014
svok.c strerr: Include ": " separator automatically in sys error message Aug 20, 2013
svok=x svok: Add support for $SUPERVISEDIR Jun 12, 2010
svpath.c Remove automatic call to svpath_init in svpath_copy Jun 12, 2010
svpath.h supervise: Add a conf-supervise control and svpath module Jun 12, 2010
svscan.8 svscan: add sigterm handling Sep 28, 2018
svscan.c Merge branch 'svscan-sigterm-003' of https://github.com/snakpak/daemo… Sep 28, 2018
svscan=x Switch to an automatically generated Makefile May 12, 2010
svscanboot.8 setuser: New program to setenv, setuid, and chdir in one Nov 11, 2014
svscanboot.sh Initial commit May 7, 2010
svscanboot=s Switch to an automatically generated Makefile May 12, 2010
svstat.8.in envini: New program to read environment variables from an INI file Sep 30, 2014
svstat.c svstat: Add "once" flag indicator to output Sep 30, 2014
svstat=x svstat: Add support for $SUPERVISEDIR Jun 12, 2010
svstatus.h supervise: Add extended state information to the status file Jun 23, 2010
svup.8.in Sort all the "SEE ALSO" sections in the man pages Sep 30, 2014
svup.c strerr: Include ": " separator automatically in sys error message Aug 20, 2013
svup=x svup: New program to check if a service is started Jul 6, 2010
sysdeps.do byte*: Wrap standard C library functions, they're faster Mar 20, 2014
systype.do Switch to an automatically generated Makefile May 12, 2010
tai.h Add support for accustamp time stamps in multilog Jun 3, 2010
tai64n.8 setuser: New program to setenv, setuid, and chdir in one Nov 11, 2014
tai64n.c tai64n: Use buffer_copyline to speed up data copying Mar 21, 2014
tai64n=x Switch to an automatically generated Makefile May 12, 2010
tai64nlocal.8 setuser: New program to setenv, setuid, and chdir in one Nov 11, 2014
tai64nlocal.c tai64nlocal: Format all the numbers, then output Mar 21, 2014
tai64nlocal=x Switch to an automatically generated Makefile May 12, 2010
tai_now.c Initial commit May 7, 2010
tai_pack.c Initial commit May 7, 2010
tai_sub.c Initial commit May 7, 2010
tai_unpack.c Initial commit May 7, 2010
taia.h Initial commit May 7, 2010
taia_add.c Initial commit May 7, 2010
taia_approx.c Initial commit May 7, 2010
taia_frac.c Initial commit May 7, 2010
taia_less.c Initial commit May 7, 2010
taia_now.c Initial commit May 7, 2010
taia_pack.c Initial commit May 7, 2010
taia_sub.c Initial commit May 7, 2010
taia_uint.c Initial commit May 7, 2010
targets.do Add installer program and instructions Jun 29, 2010
time=l Switch to an automatically generated Makefile May 12, 2010
timestamp.c Add support for accustamp time stamps in multilog Jun 3, 2010
timestamp.h Add support for accustamp time stamps in multilog Jun 3, 2010
tryattribute.c Add a sysdep for GCC attributes, to note that strerr_die is noreturn. Jul 8, 2010
trycpp.c Initial commit May 7, 2010
trydrent.c Initial commit May 7, 2010
tryflock.c Initial commit May 7, 2010
trymemrchr.c byte_rchr: Eliminate warning about implicit declaration of memrchr Oct 13, 2018
trymkffo.c Initial commit May 7, 2010
trypoll.c Initial commit May 7, 2010
trysgact.c Initial commit May 7, 2010
trysgprm.c Initial commit May 7, 2010
tryshsgr.c Initial commit May 7, 2010
trysysel.c Initial commit May 7, 2010
tryulong64.c Initial commit May 7, 2010
trywaitp.c Initial commit May 7, 2010
uint64.h.do Switch to an automatically generated Makefile May 12, 2010
uint64.h1 Initial commit May 7, 2010
uint64.h2 Initial commit May 7, 2010
unix=l buffer: Add buffer_gets line reading function Mar 21, 2014
wait.h Fix the macro definitions in wait.h Jun 24, 2010
wait_nohang.c Initial commit May 7, 2010
wait_pid.c Initial commit May 7, 2010
warn-auto.sh Initial commit May 7, 2010
warn-shsgr Initial commit May 7, 2010
x86cpuid.c Initial commit May 7, 2010

README

daemontools-encore is a collection of tools for managing UNIX services.
It is derived from the public-domain release of daemontools by D. J.
Bernstein, which can be found at http://cr.yp.to/daemontools.html

daemontools-encore adds numerous enhancements above what daemontools
could do while maintaining backwards compatibility with daemontools.
See the CHANGES file for more details on what features have been added.

I realize there are other supervisory systems that will handle some or
all of the tasks that this package does better.  I am providing this
package as a service to those who prefer the semantics and handling that
daemontools provides.

Official release can be found at:

	http://untroubled.org/daemontools-encore/

Development versions are available from github:

	https://github.com/bruceg/daemontools-encore

============
Installation
============

Adjust the values in the conf-* files if necessary.

Build the programs by running 'make'.

Edit the conf-bin and conf-man files and put the destination directory
for programs and man pages in the first line of each respectively.

As root, run 'make install'.



Copyright (c) 2014 Bruce Guenter

See the LICENSE file for details.