summaryrefslogtreecommitdiff
path: root/dns/dhisd/files/INSTALL.bsd
blob: 71cc9bf753208df5f353bf11bf20bc8914e9a168 (plain) (blame)
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
Install instructions for DHIS server rel5.1 for FreeBSD
=======================================================

dhisd is the DHIS server, meant to permit updating external 
databases with dynamically assiged IP addresses to clients.

In order to build the dhisd server the following requirements must
be met:

	The machine must be permanently connected to the internet
	with a static IP address.

	The machine which will act as a server should be running
	a distribution of UNIX or similar system.


For full information, read the INSTALL file in /usr/local/share/doc/dhisd

Setting up the server

	Create the database file which will hold information for
	current dynamic hosts:

	Change directory to /usr/local/etc/dhis
	
	Create a text file named dhis.db with a text editor.
	You can copy the dhis.db.sample to dhis.db as a starting point.

	Change the permissions as you wish. In particular dhis.db
	should not be readable by anyone. Suggested example:

	chmod 700 /usr/local/etc/dhis /usr/local/etc/dhis/*
	chmod 600 /usr/local/etc/dhis/dhis.db

	Now create /usr/local/etc/dhis/services.db

	As before, you can copy the included services.db.sample as a
	starting point.
	
	Insert one line	per module implemented. See MODULES for	a
	detailed description of	the modular architecture and
	services.db format.

	See the README file for more information on the server
	and MODULES for information on the new modular structure 
	of the server.

	For starting the server, you can use the following script:

	/usr/local/etc/rc.d/dhis.sh

	It has the following options:
	start		start the server
	restart 	restart the server (after changing the db)
	stop		stop the server

	And that's it. The DHIS server is installed.