NAME
svc-add - Add a svscan service.
SYNOPSIS
svc-add [ -d ] SERVICE [
DIRECTORY ]
DESCRIPTION
svc-add adds the named service to the
/service directory by creating a symbolic link there to the
service directory. The service directory defaults to
/var/service/SERVICE but may be overridden by the
DIRECTORY parameter.
OPTIONS
- -d
- Mark the service as being down initially so that svscan won't
start it automatically.
EXAMPLES
Add the /var/service/qmail service:
svc-add qmail Add the dnscache service from /etc/dnscache
without starting it:
svc-add -d dnscache /etc/dnscache
ENVIRONMENT
- SVCLOCKDIR
- If set, this overrides the default of /var/service for
the default service directory base path.
- SVSCANDIR
- If set, this overrides the default of /service for the
directory into which the services should be linked.
NOTES
This script does not activate the service. However,
if the service has not been marked down, it will be started by
svscan.