1CNID_METAD(8)                    Netatalk 2.1                    CNID_METAD(8)
2
3
4

NAME

6       cnid_metad - start cnid_dbd daemons on request
7

SYNOPSIS

9       cnid_metad [-l loglevel [-f filename]] [-d] [-h hostname] [-p port]
10                  [-u user] [-g group] [-s cnid_dbdpathname]
11

DESCRIPTION

13       cnid_metad waits for requests from afpd to start up instances of the
14       cnid_dbd daemon. It keeps track of the status of a cnid_dbd instance
15       once started and will restart it if necessary.  cnid_metad is normally
16       started at boot time from /etc/rc or equivalent and runs until
17       shutdown.  afpd needs to be configured with the -cnidserver option in
18       afpd.conf in order to access cnid_metad.  It is possible to run more
19       than one instance of cnid_metad on the same machine if different values
20       for the interface and/or port are specified with the -h and -p options.
21

OPTIONS

23       -l <loglevel> [-f <filename>]
24           Specify that any message of a loglevel up to the given loglevel
25           should be logged to the given file. If the filename is ommited the
26           loglevel applies to messages passed to syslog. Default is logs to
27           syslog with a default logging setup of "log_note".
28
29           Note: cnid_metad passes this to cnid_dbd which will in turn use
30           this for its logging setup.
31
32           loglevels: LOG_SEVERE, LOG_ERROR, LOG_WARN, LOG_NOTE, LOG_INFO,
33           LOG_DEBUG, LOG_DEBUG6, LOG_DEBUG7, LOG_DEBUG8, LOG_DEBUG9,
34           LOG_MAXDEBUG
35
36           Example. Useful default config
37
38               -l log_info -f /var/log/afpd.log
39
40           Example. Debugging config
41
42               -l log_maxdebug -f /var/log/afpd.log
43
44       -d
45           cnid_metad will remain in the foreground and will also leave the
46           standard input, standard output and standard error file descriptors
47           open. Useful for debugging.
48
49       -h hostname
50           Use hostname as the network interface for requests as opposed to
51           the default localhost. The network address may be specified either
52           in dotted-decimal format for IPv4 or in hexadecimal format for
53           IPv6.
54
55       -p port
56           Use port as the port number for reqests. Default is 4700.
57
58       -u user
59           Switch to the userid of user before serving requests. This userid
60           will be inherited by all cnid_dbd daemon processes started.
61
62       -g group
63           Switch to the groupid of group before serving requests. This
64           groupid will be inherited by all cnid_dbd daemon processes started.
65           Both user and group must be specified as strings.
66
67       -s cnid_dbd pathname
68           Use cnid_dbd pathname as the pathname of the executeable of the
69           cnid_dbd daemon. The default is /usr/sbin/cnid_dbd.
70

CAVEATS

72       The number of cnid_dbd subprocecesses is currently limited to 512.
73
74       cnid_metad does not block or catch any signals apart from SIGPIPE. It
75       will therefore exit on most signals received. This will also cause all
76       instances of cnid_dbd´s started by that cnid_metad to exit gracefully.
77       Since state about and IPC access to the subprocesses is only maintained
78       in memory by cnid_metad this is desired behaviour. As soon as
79       cnid_metad is restarted afpd processes will transparently reconnect.
80

SEE ALSO

82       cnid_dbd(8), afpd(8), dbd(1)
83
84
85
86Netatalk 2.1                      23 Dec 2009                    CNID_METAD(8)
Impressum