USERVD(8) | System Manager's Manual | USERVD(8) |
uservd
— supply
user services
userv |
[-daemon ] |
uservd
is the daemon called by
userv
to have a task performed under different
userid while maintaining limited trust between caller and callee.
There is one optional argument:
-daemon
uservd
will fork and completely detach from the
controlling terminal. If this option is not supplied,
uservd
will remain in its starting process group
and continue to use the supplied stderr stream for any runtime system
messages; this is useful for running uservd
as a
child of init
. Errors detected by
uservd
itself will be reported via
syslog
in either case.uservd
issues diagnostics of various kinds
to syslog, with facility LOG_DAEMON
. The syslog
levels used are:
debug
info
notice
warning
err
crit
alert
emerg
The service configuration language has the facility to direct
error and warning messages to syslog. The default facility and level is
user.err
, but the author of the configuration
file(s) can override this.
The daemon's exit code will reflect how well things went:
0
1*
2*
3
4
5*
6
SIGABRT/SIGIOT*
Outcomes marked * are not possible if the daemon is asked to detach itself - these exit statuses will be reaped by init instead and so will not usually be logged anywhere.
The daemon's per-request children will report the success or otherwise of its request in their exit status. These are not usually be logged unless they indicate a serious problem.
All of the environment variables passed to
uservd
will be inherited by services as part of the
default environment. (If the set-environment
configuration directive is used, then other system configuration files can
modify the environment. Consult the specification.)
Ian Jackson, User service daemon and client specification.
GNU userv is copyright Ian Jackson and other contributors. See
README or userv --copright
for full authorship
information.
GNU userv is licensed under the terms of the GNU General Public Licence, version 3 or (at your option) any later version, and it comes with NO WARRANTY, not even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for details.
You should have received a copy of the GNU General Public License along with userv, if not, see http://www.gnu.org/licenses/
uservd
was initially written in 1996 by
Ian Jackson. It became GNU uservd
in 1999, and
version 1.0 was released in 2000.
November 3, 1999 | userv |