Content-type: text/html
Manpage of svc-add
svc-add
Section: User Commands (1)
Index
Return to Main Contents
NAME
svc-add - Add a svscan service.
SYNOPSIS
svc-add
[
-d
]
DIRECTORY
[
SERVICE
]
DESCRIPTION
svc-add
adds a named service to the
/service
directory by creating a symbolic link there to the service directory.
The service directory defaults to
/var/service/DIRECTORY
if
DIRECTORY
contains no slashes.
The service name that is created in
/service
defaults to everything following the last slash (if any) in
DIRECTORY,
but may be overridden by the
SERVICE
parameter.
OPTIONS
- -d
-
Mark the service as being down initially so that svscan won't start it
automatically.
EXAMPLES
Add the
/var/service/foo
service:
svc-add foo
Add the dnscache service from
/etc/dnscache
without starting it:
svc-add -d /etc/dnscache
Add the tinydns service from
/etc/tinydns
and name it
dnsd
svc-add /etc/tinydns dnsd
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, unless the
service has been marked down, it will be started by svscan.
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- OPTIONS
-
- EXAMPLES
-
- ENVIRONMENT
-
- NOTES
-
This document was created by
man2html,
using the manual pages.
Time: 02:12:13 GMT, December 23, 2009