summaryrefslogtreecommitdiff
path: root/other/bootstrap_daemon/README.md
diff options
context:
space:
mode:
authorMaxim Biro <nurupo.contributions@gmail.com>2014-02-22 17:06:07 -0500
committerMaxim Biro <nurupo.contributions@gmail.com>2014-02-22 17:07:15 -0500
commit5a142bb697651693e4ce7654d2f74e688aab8894 (patch)
tree4268ae9377593d8632efbbe57bb4680744014f2a /other/bootstrap_daemon/README.md
parent44c1dfc5fda6393f18ef7b4178c0c32f3d64f357 (diff)
Renamed dht server to dht node
Diffstat (limited to 'other/bootstrap_daemon/README.md')
-rw-r--r--other/bootstrap_daemon/README.md62
1 files changed, 62 insertions, 0 deletions
diff --git a/other/bootstrap_daemon/README.md b/other/bootstrap_daemon/README.md
new file mode 100644
index 00000000..53a25cdb
--- /dev/null
+++ b/other/bootstrap_daemon/README.md
@@ -0,0 +1,62 @@
1##Instructions for Debian
2
3The following commands are to be executed as root:
4
51. In `tox_bootstrap_daemon.sh` 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_bootstrap_daemon.sh`
11
123. Execute:
13```
14mv tox_bootstrap_daemon.sh /etc/init.d/tox_bootstrap_daemon
15```
16*(note that we removed `.sh` ending)*
17
184. Give the right permissions to this file:
19```
20chmod 755 /etc/init.d/tox_bootstrap_daemon
21```
22
235. Execute:
24```
25update-rc.d tox_bootstrap_daemon defaults
26```
27
286. Start the service:
29```
30service tox_bootstrap_daemon start
31```
32
337. Verify that the service is running:
34```
35service tox_bootstrap_daemon status
36```
37
38--
39
40You can see daemon's log with
41```
42grep "tox_bootstrap_daemon" /var/log/syslog
43```
44
45**Note that system log is where you find your public key**
46
47--
48
49###Troubleshooting:
50
511. Check the log for errors with
52```
53grep "tox_bootstrap_daemon" /var/log/syslog
54```
55
562. Check that paths in the beginning of `/etc/init.d/tox_bootstrap_daemon` are valid
57
583. Make sure that `PIDFILE` from `/etc/init.d/tox_bootstrap_daemon` matches with the `pid_file_path` from `conf`
59
604. Make sure you have write permission to keys and pid files
61
625. Make sure you have read permission for config file \ No newline at end of file