2002-01-19 06:05:00 +03:00
|
|
|
.\" $NetBSD: altqd.8,v 1.6 2002/01/19 03:05:00 wiz Exp $
|
2001-08-22 12:52:35 +04:00
|
|
|
.\" $KAME: altqd.8,v 1.8 2001/08/22 08:49:35 itojun Exp $
|
2000-12-16 20:39:40 +03:00
|
|
|
.\"
|
|
|
|
.\" Copyright (C) 2000
|
|
|
|
.\" Sony Computer Science Laboratories Inc. All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
2001-08-16 11:45:35 +04:00
|
|
|
.\"
|
2000-12-16 20:39:40 +03:00
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY SONY CSL AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL SONY CSL OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
.Dd September 28, 1999
|
|
|
|
.Dt ALTQD 8
|
|
|
|
.Sh NAME
|
|
|
|
.Nm altqd
|
|
|
|
.Nd ALTQ daemon
|
|
|
|
.Sh SYNOPSIS
|
2001-08-16 11:45:35 +04:00
|
|
|
.Nm altqd
|
2000-12-16 20:39:40 +03:00
|
|
|
.Op Fl dvD
|
2001-08-22 12:52:35 +04:00
|
|
|
.Op Fl f Ar conf_file
|
2000-12-16 20:39:40 +03:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
|
|
|
is a daemon program that reads a configuration file and then sets up
|
2001-08-16 11:45:35 +04:00
|
|
|
the ALTQ state of network interfaces.
|
|
|
|
After configuring the ALTQ state,
|
2000-12-16 20:39:40 +03:00
|
|
|
.Nm
|
|
|
|
will detach and become a daemon.
|
2001-08-16 11:45:35 +04:00
|
|
|
.Pp
|
|
|
|
The signal SIGINT or SIGTERM will shutdown
|
2001-08-22 12:52:35 +04:00
|
|
|
.Nm Ns ,
|
|
|
|
and the signal SIGHUP will restart
|
|
|
|
.Nm Ns .
|
2000-12-16 20:39:40 +03:00
|
|
|
.Pp
|
|
|
|
The following options are available:
|
2001-08-22 12:52:35 +04:00
|
|
|
.Bl -tag -width Fl
|
2000-12-16 20:39:40 +03:00
|
|
|
.It Fl f
|
2001-08-16 11:45:35 +04:00
|
|
|
Specify a configuration file to read instead of the default.
|
|
|
|
The default file is
|
|
|
|
.Pa /etc/altq.conf .
|
2000-12-16 20:39:40 +03:00
|
|
|
.It Fl d
|
2001-08-16 11:45:35 +04:00
|
|
|
Debug mode.
|
2000-12-16 20:39:40 +03:00
|
|
|
.Nm
|
|
|
|
does not detach and goes into the command mode.
|
|
|
|
.It Fl v
|
2001-08-16 11:45:35 +04:00
|
|
|
Print debugging information.
|
|
|
|
This option implies
|
|
|
|
.Fl d .
|
2000-12-16 20:39:40 +03:00
|
|
|
.It Fl D
|
2001-08-16 11:45:35 +04:00
|
|
|
Dummy mode.
|
2000-12-16 20:39:40 +03:00
|
|
|
.Nm
|
|
|
|
does not issue altq system calls.
|
|
|
|
.El
|
|
|
|
.Sh COMMANDS
|
2001-08-16 11:45:35 +04:00
|
|
|
When
|
2000-12-16 20:39:40 +03:00
|
|
|
.Fl d
|
2001-08-16 11:45:35 +04:00
|
|
|
option is provided,
|
|
|
|
.Nm
|
2000-12-16 20:39:40 +03:00
|
|
|
goes into the command mode after reading the configuration file and
|
2001-08-16 11:45:35 +04:00
|
|
|
setting up the ALTQ state.
|
|
|
|
Each command is a single line, starting with the command verb.
|
2000-12-16 20:39:40 +03:00
|
|
|
.Pp
|
|
|
|
The basic commands are as follows:
|
2001-08-22 12:52:35 +04:00
|
|
|
.Bl -tag -width help
|
|
|
|
.It Cm help | ?
|
2000-12-16 20:39:40 +03:00
|
|
|
Display a complete list of commands and their syntax.
|
2001-08-16 11:45:35 +04:00
|
|
|
.It Cm quit
|
2000-12-16 20:39:40 +03:00
|
|
|
Exit.
|
2001-08-16 11:45:35 +04:00
|
|
|
.It Cm altq Ar reload
|
2001-08-22 12:52:35 +04:00
|
|
|
Reload the configuration file and reinitialize ALTQ.
|
|
|
|
.It Cm altq Ar interface Op enable|disable
|
2001-08-16 11:45:35 +04:00
|
|
|
Enables or disables ALTQ on the interface named
|
2001-08-22 12:52:35 +04:00
|
|
|
.Em interface .
|
2001-08-16 11:45:35 +04:00
|
|
|
When
|
2000-12-16 20:39:40 +03:00
|
|
|
.Nm
|
|
|
|
enters the command mode, ALTQ is enabled on all the
|
|
|
|
interfaces listed in the configuration file.
|
|
|
|
.El
|
|
|
|
.Sh FILES
|
2001-08-22 12:52:35 +04:00
|
|
|
.Bl -tag -width /var/run/altqd.pid -compact
|
|
|
|
.It Pa /etc/altq.conf
|
|
|
|
configuration file
|
|
|
|
.It Pa /var/run/altqd.pid
|
|
|
|
pid of the running
|
|
|
|
.Nm
|
|
|
|
.It Pa /var/run/altq_quip
|
|
|
|
Unix domain socket for communicating with
|
|
|
|
.Xr altqstat 1
|
|
|
|
.El
|
2000-12-16 20:39:40 +03:00
|
|
|
.Sh SEE ALSO
|
2001-08-22 12:52:35 +04:00
|
|
|
.Xr altqstat 1 ,
|
2002-01-19 06:05:00 +03:00
|
|
|
.Xr altq.conf 5 ,
|
2001-08-22 12:52:35 +04:00
|
|
|
.Xr altq 9
|