Daemon

Command Line Arguments

The polypaudio daemon accepts several command line arguments:
  -h, --help                            Show this help
      --version                         Show version
      --dump-conf                       Dump default configuration
      --dump-modules                    Dump list of available modules

  -D, --daemonize[=BOOL]                Daemonize after startup
      --fail[=BOOL]                     Quit when startup fails
      --verbose[=BOOL]                  Be slightly more verbose
      --high-priority[=BOOL]            Try to set high process priority (only available as root)
      --disallow-module-loading[=BOOL]  Disallow module loading after startup
      --exit-idle-time=SECS             Terminate the daemon when idle and this time passed
      --module-idle-time=SECS           Unload autoloaded modules when idle and this time passed
      --scache-idle-time=SECS           Unload autoloaded samples when idle and this time passed
      --log-target={auto,syslog,stderr} Specify the log target
  -p, --dl-search-path=PATH             Set the search path for dynamic shared objects (plugins)
      --resample-method=[METHOD]        Use the specified resampling method

  -L, --load="MODULE ARGUMENTS"         Load the specified plugin module with the specified argument
  -F, --file=FILENAME                   Run the specified script
  -C                                    Open a command line on the running TTY after startup (identical to -Lmodule-cli)

  -n                                    Don't load default script file

Example

It is a good idea to run the daemon like this:

polypaudio -D

This will run /etc/polypaudio/default.pa after startup. This should be a script written in the CLI language described in cli.html.

Signals

The following signals are trapped specially:

SIGINT

The daemon is shut down cleanly.

SIGUSR1

The daemon tries to load the module module-cli, effectively providing a command line interface on the calling TTY.

SIGUSR2

The daemon tries to load the module module-cli-protocol-unix, effectively providing a command line interface on a special UNIX domain socket.


Lennart Poettering <@PACKAGE_BUGREPORT@>, September 2004
$Id$