summaryrefslogtreecommitdiff
path: root/usr.sbin/altq/altqd/altqd.8
blob: 722572cd5df1685f5fc332d7baed68db859c7da9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
.\"	$OpenBSD: altqd.8,v 1.1 2001/06/27 18:23:17 kjc Exp $
.\"	$KAME: altqd.8,v 1.4 2001/04/09 16:26:28 thorpej Exp $
.\"
.\" 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.
.\"
.\" 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
.Nm altqd
.Op Fl f Ar conf_file
.Op Fl dvD
.Sh DESCRIPTION
.Nm
is a daemon program that reads a configuration file and then sets up
the ALTQ state of network interfaces.  After configuring the ALTQ
state,
.Nm
will detach and become a daemon.

The signal SIGINT or SIGTERM will shutdown
.Nm
, and the signal SIGHUP will restart
.Nm
\&.
.Pp
The following options are available:
.Bl -tag -width Fl -offset indent
.It Fl f
Specify a configuration file to read instead of the default.  The
default file is
.Pa /etc/altq.conf
\&.
.It Fl d
Debug mode.
.Nm
does not detach and goes into the command mode.
.It Fl v
Print debugging information.  This option implies
.Fl d
\&.
.It Fl D
Dummy mode.
.Nm
does not issue altq system calls.
.El

.Sh COMMANDS
When
.Fl d
option is provided,
.Nm
goes into the command mode after reading the configuration file and
setting up the ALTQ state.  Each command is a single line, starting
with the command verb.
.Pp
The basic commands are as follows:
.Bl -tag -width help -offset indent
.It Sy help Em or Sy ?
Display a complete list of commands and their syntax.
.It Sy quit
Exit.
.It Sy altq reload
reload the configuration file and reinitialize ALTQ.
.It Sy altq Em iface_name Op enable|disable
Enables or disables ALTQ on the interface named
.Em iface_name .
When
.Nm
enters the command mode, ALTQ is enabled on all the
interfaces listed in the configuration file.
.El

.Sh FILES
.Pa /etc/altq.conf ,
.Pa /var/run/altqd.pid
.Pa /var/run/altq_quip
.Sh SEE ALSO
.Xr altq.conf 5