cw-nssctl#

NAME

cw-nssctl -- Manage the cw-nss service.

Note

This command used to be scyld-nssctl. The legacy scyld-* command is deprecated and will be removed in a future release.

USAGE

cw-nssctl

[-h] [-v] [start] [stop], [status]

DESCRIPTION

A basic tool to start, stop, or show the status of the cw-nss functionality without affecting the systemd status. The 'start' and 'stop' actions must be executed by user root.

OPTIONAL ARGUMENTS:

-h, --help

Print usage message and exit. Ignore trailing args, parse and ignore preceding args.

-v

Increase verbosity.

start

Insert cw in the /etc/nsswitch.conf hosts line to enable (or reenable) cw-nss functionality.

stop

Disable cw-nss functionality by removing cw in the /etc/nsswitch.conf hosts line.

status

Display the current status of cw-nss functionality. (The default if no argument is supplied.)

EXAMPLES

cw-nssctl

Display the current state of cw-nss.

cw-nssctl status

Display the current state of cw-nss.

cw-nssctl stop

Disable cw-nss functionality.

cw-nssctl start

Enable cw-nss functionality.

RETURN VALUES

Upon successful completion, cw-nssctl returns 0. On failure, an error message is printed to stderr and cw-nssctl returns nonzero.