summaryrefslogtreecommitdiff
path: root/other/bootstrap_serverdaemon/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'other/bootstrap_serverdaemon/README.md')
-rw-r--r--other/bootstrap_serverdaemon/README.md61
1 files changed, 61 insertions, 0 deletions
diff --git a/other/bootstrap_serverdaemon/README.md b/other/bootstrap_serverdaemon/README.md
new file mode 100644
index 00000000..0c423675
--- /dev/null
+++ b/other/bootstrap_serverdaemon/README.md
@@ -0,0 +1,61 @@
1##Instructions for Debian
2
3The following commands are to be executed as root:
4
51. In `tox_dht_bootstrap_server_daemon` file change:
6 - `CFG` to where your config file (`conf`) will be; read rights required
7 - `DAEMON` to point to the executable
8 - `PIDFILE` to point to a pid file daemon would have rights to create
9
102. Go over everything in `conf`. Make sure `pid_file_path` matches `PIDFILE` from `tox_dht_bootstrap_server_daemon`
11
123. Execute:
13```
14mv tox_dht_bootstrap_server_daemon /etc/init.d/tox_dht_bootstrap_server_daemon
15```
16
174. Give the right permissions to this file:
18```
19chmod 755 /etc/init.d/tox_dht_bootstrap_server_daemon
20```
21
225. Execute:
23```
24update-rc.d tox_dht_bootstrap_server_daemon defaults
25```
26
276. Start the service:
28```
29service tox_dht_bootstrap_server_daemon start
30```
31
327. Verify that the service is running:
33```
34service tox_dht_bootstrap_server_daemon status
35```
36
37--
38
39You can see daemon's log with
40```
41grep "tox_dht_bootstrap_server_daemon" /var/log/syslog
42```
43
44**Note that system log is where you find your public key**
45
46--
47
48###Troubleshooting:
49
501. Check the log for errors with
51```
52grep "tox_dht_bootstrap_server_daemon" /var/log/syslog
53```
54
552. Check that paths in the beginning of `/etc/init.d/tox_dht_bootstrap_server_daemon` are valid
56
573. Make sure that `PIDFILE` from `/etc/init.d/tox_dht_bootstrap_server_daemon` matches with the `pid_file_path` from `conf`
58
594. Make sure you have write permission to keys and pid files
60
615. Make sure you have read permission for config file \ No newline at end of file