[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Commands Reference, Volume 1

cdromd Command

Purpose

Automatically mounts a CD-ROM or DVD-ROM when it is inserted in a device, and provides the server function for the cdutil, cdcheck, cdmount, cdumount, and cdeject commands.

Syntax

cdromd [ -d ]

Note
Use System Resource Controller (SRC) commands to control the cdromd daemon from the command line. To have the cdromd daemon enabled on each system startup, add the following line to /etc/inittab:
cdromd:23456789:wait:/usr/bin/startsrc -s cdromd

Description

The cdromd daemon finds the device list it has to manage and their respective mount points in /etc/cdromd.conf file. If this file does not exist or is empty, cdromd manages all the CD-ROM and DVD-ROM devices available on the system, and the mount points are /cdrom/cd0 for cd0, /cdrom/cd1 for cd1, etc.

After its init phase cdromd periodically checks if a media is present in one of the managed drives (for devices that are not already mounted) and mounts it if there is a media.

cdromd also periodically checks its socket for requests comming from cdutil, cdcheck, cdmount, cdumount or cdeject commands.

The cdromd daemon should be controlled using the System Resource Controller (SRC). Entering cdromd at the command line is not recommended.

The cdromd daemon sends its error messages to the syslogd daemon.

Manipulating the cdromd daemon with the System Resource Controller:

The cdromd daemon is a subsystem controlled by the System Resource Controller (SRC). Its subsystem name is cdromd. The cdromd daemon can be manipulated by the following SRC commands:

stopsrc
Stops a subsystem, group of subsystems, or a subserver.
startsrc
Starts a subsystem, a group of subsystems, or a subserver.
refresh
Requests a refresh of a subsystem or group of subsystems.
traceson
Turns on tracing of a subsystem, group of subsystems, or a subserver.
tracesoff
Turns off tracing of a subsystem, group of subsystems, or a subserver.
lssrc
Gets the status of a subsystem, group of subsystems, or a subserver.

In addition, the cdromd daemon can be controlled by issuing signals using the kill command. Sending a SIGHUP signal to cdromd is equivalent to the "refresh -s cdromd" command, and sending a SIGTERM signal to cdromd is equivalent to the "stopsrc -s cdromd" command.

Flags

-d Sends debugging messages to syslogd daemon.

Exit Status

This daemon returns the following exit values:

0
The cdromd daemon was stopped by SRC or SIGTERM signal.
>0
An error occurred.

Examples

  1. To stop the cdromd daemon normally, enter the following:
    stopsrc -s cdromd
    This command stops the daemon. The -s flag indicates that the specified subsystem is to be stopped.
  2. To start the cdromd daemon, enter the following:
    startsrc -s cdromd
    This command starts the daemon. This command is in the /etc/inittab file and can be used on the command line. The -s flag indicates that the specified subsystem is to be started.
  3. To get a short status report from the cdromd daemon, enter the following:
    lssrc -s cdromd
    This command returns the name of the daemon, the process ID of the daemon, and the state of the daemon (active or inactive).
  4. To tell cdromd daemon its configuration file has changed, enter the following:
    refresh -s cdromd
    This command tells the cdromd daemon to read its configuration file again.

Files

/etc/cdromd.conf Describes managed devices and supported file systems.

Related Information

cdcheck command, cdeject command, cdmount command, cdumount command, cdutil command, syslogd daemon.

cdromd.conf file format

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]