Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

update-service(8) [debian man page]

update-service(8)					      System Manager's Manual						 update-service(8)

NAME
update-service - add/remove a service to/from system-wide service supervision SYNOPSIS
update-service --add|--remove service-directory [service-name] update-service --list|--check [service-name] DESCRIPTION
service-directory must be a directory to be used by supervise(8), service-name must not start with a dot, and must not contain a slash. update-service adds or removes the service-directory to the system-wide service supervision provided through daemontools' svscan(8), lists all registered system-wide services, or checks for a specific service-name whether it is registered. When adding a service, and the service-directory resides in /etc/, update-service makes sure that the ./supervise/ subdirectories in the service-directory, and the optional service-directory/log/, are symbolic links pointing into /var/lib/supervise/, unless they already are symbolic links. OPTIONS
--add | -a Add the service directory service-directory to the system-wide service supervision, under the name service-name. If service-name is not specified, update-service will use the basename of service-directory. You can use the svc(8) program to control the newly added service, and the svstat(8) program to query its status, e.g.: # svstat /etc/service/service-name --remove | -r Remove the service directory service-directory, which has been added under the name service-name, from the system-wide service supervision. If service-name is not specified, update-service will use the basename of service-directory. When removing the ser- vice-directory, the exit command is sent to the corresponding supervise(8) process, telling it to take the service down and exit afterwards. You can use the svc(8) and svstat(8) programs to control the removed service, or query its status, e.g.: # svstat service-directory --list | -l If service-name is specified, update-service checks whether service-name is registered as system-wide service, prints a message and exits non-zero if not, or prints the service-name and the directory it points to and exits zero if yes. If service-name is not specified, it prints the names of all system-widely registered services, one per line. --check | -c The same as --list, but update-service doesn't print anything to standard out or standard error. ENVIRONMENT
SVDIR The environment variable $SVDIR overrides the default services directory /etc/service/. FILES
/etc/service/ SEE ALSO
svc(8), svstat(8), svscan(8), svscanboot(8) AUTHOR
Gerrit Pape <pape@smarden.org> update-service(8)

Check Out this Related Man Page

print-service(1M)					  System Administration Commands					 print-service(1M)

NAME
print-service - select, report, import, export active print service on a system SYNOPSIS
print-service [-s service [-m] | -q | -e file | -i file] DESCRIPTION
The print-service utility manages print service selection, as well as export and import of basic print queue configuration. Only a user root privileges or with the Printer Management profile can change the active print service or import print queue configuration. OPTIONS
The following options are supported: -s service Select the active print service for on a host. service can be one of lp or cups. -m Migrate print queue configuration during print service selection. -q Report the active print service on a host. -e file Export basic print queue configuration to a file. -i file Import basic print queue configuration from a file. EXAMPLES
Example 1 Selecting a Print Service The following command selects the CUPS print service as the active print service on a host. # print-service -s cups Example 2 Reporting the Active Print Service The following command reports the active print service on a host. # print-service -q Example 3 Exporting a Print Queue Configuration The following command exports the print queue configuration from the active print service. # print-service -e /tmp/queues Example 4 Importing a Print Queue Configuration The following command imports the print queue configuration to the active print service. # print-service -i /tmp/queues EXIT STATUS
0 Successful completion. non-zero An error occurred. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWpcu | +-----------------------------+-----------------------------+ |Interface Stability |Obsolete | +-----------------------------+-----------------------------+ SEE ALSO
intro(1), attributes(5) NOTES
The print queue configuration saved and restored during export, import, and migration is limited to queue name and device name. It is likely that further configuration changes will be required before imported or migrated print queues become usable. SunOS 5.11 18 Mar 2008 print-service(1M)
Man Page