summaryrefslogtreecommitdiff
path: root/other/bootstrap_daemon/README.md
diff options
context:
space:
mode:
authorirungentoo <irungentoo@tox.im>2014-02-22 17:52:26 -0500
committerirungentoo <irungentoo@tox.im>2014-02-22 17:52:26 -0500
commitf219fb4ac1bf60eea3117df4aa8615cd07738a69 (patch)
tree4268ae9377593d8632efbbe57bb4680744014f2a /other/bootstrap_daemon/README.md
parent388b1229b97f06ebfad1bb839a06bbeefe8cc2d1 (diff)
parent5a142bb697651693e4ce7654d2f74e688aab8894 (diff)
Merge pull request #760 from nurupo/server-to-node
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