/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to mandos.conf

  • Committer: Teddy Hogeborn
  • Date: 2011-11-26 22:22:20 UTC
  • mto: (518.1.8 mandos-persistent)
  • mto: This revision was merged to the branch mainline in revision 524.
  • Revision ID: teddy@recompile.se-20111126222220-1ubwjpb5ugqnrhec
Directory with persistent state can now be changed with the "statedir"
option.  The state directory /var/lib/mandos now gets created on
installation.  Added documentation about "restore" and "statedir"
options.

* Makefile (USER, GROUP, STATEDIR): New.
  (maintainer-clean): Also remove "statedir".
  (run-server): Replaced "--no-restore" with "--statedir=statedir".
  (statedir): New.
  (install-server): Make $(STATEDIR) directory.
* debian/mandos.dirs (var/lib/mandos): Added.
* debian/mandos.postinst: Fix ownership of /var/lib/mandos.
* mandos: New --statedir option.
  (stored_state_path): Not global anymore.
  (stored_state_file): New global.
* mandos.conf: Fix whitespace.
  (restore, statedir): Added.
* mandos.conf.xml (OPTIONS, EXAMPLE): Added "restore" and "statedir".
  mandos.xml (SYNOPSIS, OPTIONS): Added "--statedir".
  (FILES): Added "/var/lib/mandos".

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
# These are the default values for the server, uncomment and change
5
5
# them if needed.
6
6
 
7
 
 
8
7
# If "interface" is set, the server will only listen to a specific
9
8
# network interface.
10
9
;interface = 
11
10
 
12
 
 
13
11
# If "address" is set, the server will only listen to a specific
14
12
# address.  This must currently be an IPv6 address; an IPv4 address
15
13
# can be specified using the "::FFFF:192.0.2.3" syntax.  Also, if this
16
14
# is a link-local address, an interface should be set above.
17
15
;address =
18
16
 
19
 
 
20
17
# If "port" is set, the server to bind to that port. By default, the
21
18
# server will listen to an arbitrary port.
22
19
;port = 
23
20
 
24
 
 
25
21
# If "debug" is true, the server will run in the foreground and print
26
22
# a lot of debugging information.
27
23
;debug = False
28
24
 
29
 
 
30
25
# GnuTLS priority for the TLS handshake.  See gnutls_priority_init(3).
31
26
;priority = SECURE256:!CTYPE-X.509:+CTYPE-OPENPGP
32
27
 
33
 
 
34
28
# Zeroconf service name.  You need to change this if you for some
35
29
# reason want to run more than one server on the same *host*.
36
30
# If there are name collisions on the same *network*, the server will
42
36
 
43
37
# Whether to use IPv6.  (Changing this is NOT recommended.)
44
38
;use_ipv6 = True
 
39
 
 
40
# Whether to restore saved state on startup
 
41
;restore = True
 
42
 
 
43
# The directory where state is saved
 
44
;statedir = /var/lib/mandos