~ubuntu-branches/ubuntu/karmic/pdnsd/karmic

« back to all changes in this revision

Viewing changes to src/status.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Ablassmeier
  • Date: 2006-10-12 08:18:52 UTC
  • mfrom: (3.1.3 edgy)
  • Revision ID: james.westby@ubuntu.com-20061012081852-k70ha1vynt2vu7mg
Tags: 1.2.4par-0.2
* Non-maintainer upload.
* Check for bind named pidfile in initscript and do not
  try to startup, otherwise pdnsd installation bails
  out if named is running on the same host (Closes: #389609)
* add --no-create-home to adduser call.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* status.h - Make server status information accessible through a named pipe
 
2
 
2
3
   Copyright (C) 2000, 2001 Thomas Moestl
3
 
 
4
 
   With modifications by Paul Rombouts, 2002, 2004.
 
4
   Copyright (C) 2002, 2004 Paul A. Rombouts
5
5
 
6
6
This file is part of the pdnsd package.
7
7
 
32
32
extern int stat_sock;
33
33
 
34
34
/* The commands for pdnsd-ctl */
 
35
#define CTL_MIN      1
35
36
#define CTL_STATS    1 /* Give out stats (like the "traditional" status pipe) */
36
37
#define CTL_SERVER   2 /* Enable or disable a server */
37
38
#define CTL_RECORD   3 /* Delete or invalidate records */
38
39
#define CTL_SOURCE   4 /* Read a hosts-style file */
39
40
#define CTL_ADD      5 /* Add a record of the given type */
40
41
#define CTL_NEG      6 /* Add a negative cached record */
 
42
#define CTL_CONFIG   7 /* Re-read config file */
 
43
#define CTL_EMPTY    8 /* Empty the cache */
 
44
#define CTL_DUMP     9 /* Dump cache contents */
 
45
#define CTL_MAX      9
41
46
 
42
47
#define CTL_S_UP     1
43
48
#define CTL_S_DOWN   2