daemonthingies/pidfilewrapper.1

28 lines
635 B
Groff

.Dd Jul 11, 2018
.Dt pidfilewrapper 1
.Os
.Sh NAME
.Nm pidfilewrapper
.Nd create PID files for a simple daemon
.Sh SYNOPSIS
.Nm
.Ar pidfile
.Ar command
.Op Ar arguments
.Sh DESCRIPTION
.Nm
creates a PID file with specified filename and then executes the given command.
It is intended for simple daemons that do not
.Xr fork 2
and then exit the initial process.
.Pp
.Nm
executes the given command as the same process.
.Sh EXIT STATUS
.Nm
will exit with status 1 if it fails to create a PID file or execute the given
command. If it is succesful, exit status will be that of the given command.
.Sh AUTHORS
.Nm
has been written by nortti.