diff options
Diffstat (limited to 'other/bootstrap_daemon/README.md')
-rw-r--r-- | other/bootstrap_daemon/README.md | 62 |
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 | |||
3 | The following commands are to be executed as root: | ||
4 | |||
5 | 1. 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 | |||
10 | 2. Go over everything in `conf`. Make sure `pid_file_path` matches `PIDFILE` from `tox_bootstrap_daemon.sh` | ||
11 | |||
12 | 3. Execute: | ||
13 | ``` | ||
14 | mv tox_bootstrap_daemon.sh /etc/init.d/tox_bootstrap_daemon | ||
15 | ``` | ||
16 | *(note that we removed `.sh` ending)* | ||
17 | |||
18 | 4. Give the right permissions to this file: | ||
19 | ``` | ||
20 | chmod 755 /etc/init.d/tox_bootstrap_daemon | ||
21 | ``` | ||
22 | |||
23 | 5. Execute: | ||
24 | ``` | ||
25 | update-rc.d tox_bootstrap_daemon defaults | ||
26 | ``` | ||
27 | |||
28 | 6. Start the service: | ||
29 | ``` | ||
30 | service tox_bootstrap_daemon start | ||
31 | ``` | ||
32 | |||
33 | 7. Verify that the service is running: | ||
34 | ``` | ||
35 | service tox_bootstrap_daemon status | ||
36 | ``` | ||
37 | |||
38 | -- | ||
39 | |||
40 | You can see daemon's log with | ||
41 | ``` | ||
42 | grep "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 | |||
51 | 1. Check the log for errors with | ||
52 | ``` | ||
53 | grep "tox_bootstrap_daemon" /var/log/syslog | ||
54 | ``` | ||
55 | |||
56 | 2. Check that paths in the beginning of `/etc/init.d/tox_bootstrap_daemon` are valid | ||
57 | |||
58 | 3. Make sure that `PIDFILE` from `/etc/init.d/tox_bootstrap_daemon` matches with the `pid_file_path` from `conf` | ||
59 | |||
60 | 4. Make sure you have write permission to keys and pid files | ||
61 | |||
62 | 5. Make sure you have read permission for config file \ No newline at end of file | ||