summaryrefslogtreecommitdiff
path: root/other/bootstrap_serverdaemon/README.md
blob: 0c423675df2a98a70ec7d8029ceb5b9f3f5d7a17 (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
##Instructions for Debian

The following commands are to be executed as root:

1. In `tox_dht_bootstrap_server_daemon` file change:
  - `CFG` to where your config file (`conf`) will be; read rights required
  - `DAEMON` to point to the executable
  - `PIDFILE` to point to a pid file daemon would have rights to create

2. Go over everything in `conf`. Make sure `pid_file_path` matches `PIDFILE` from `tox_dht_bootstrap_server_daemon`

3. Execute: 
```
mv tox_dht_bootstrap_server_daemon /etc/init.d/tox_dht_bootstrap_server_daemon
```

4. Give the right permissions to this file: 
```
chmod 755 /etc/init.d/tox_dht_bootstrap_server_daemon
```

5. Execute: 
```
update-rc.d tox_dht_bootstrap_server_daemon defaults
```

6. Start the service: 
```
service tox_dht_bootstrap_server_daemon start
```

7. Verify that the service is running: 
```
service tox_dht_bootstrap_server_daemon status
```

--

You can see daemon's log with
```
grep "tox_dht_bootstrap_server_daemon" /var/log/syslog
```

**Note that system log is where you find your public key**

--

###Troubleshooting:

1. Check the log for errors with 
```
grep "tox_dht_bootstrap_server_daemon" /var/log/syslog
```

2. Check that paths in the beginning of `/etc/init.d/tox_dht_bootstrap_server_daemon` are valid

3. Make sure that `PIDFILE` from `/etc/init.d/tox_dht_bootstrap_server_daemon` matches with the `pid_file_path` from `conf`

4. Make sure you have write permission to keys and pid files

5. Make sure you have read permission for config file