diff options
Diffstat (limited to 'other/bootstrap_serverdaemon/README.md')
-rw-r--r-- | other/bootstrap_serverdaemon/README.md | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/other/bootstrap_serverdaemon/README.md b/other/bootstrap_serverdaemon/README.md index 97a952f4..1075fe10 100644 --- a/other/bootstrap_serverdaemon/README.md +++ b/other/bootstrap_serverdaemon/README.md | |||
@@ -2,43 +2,43 @@ | |||
2 | 2 | ||
3 | The following commands are to be executed as root: | 3 | The following commands are to be executed as root: |
4 | 4 | ||
5 | 1. In `tox-dht-bootstrap-server-daemon` file change: | 5 | 1. In `tox_dht_bootstrap_server_daemon` file change: |
6 | - `CFG` to where your config file (`conf`) will be; read rights required | 6 | - `CFG` to where your config file (`conf`) will be; read rights required |
7 | - `DAEMON` to point to the executable | 7 | - `DAEMON` to point to the executable |
8 | - `PIDFILE` to point to a pid file daemon would have rights to create | 8 | - `PIDFILE` to point to a pid file daemon would have rights to create |
9 | 9 | ||
10 | 2. Go over everything in `conf`. Make sure `pid_file_path` matches `PIDFILE` from `tox-dht-bootstrap-server-daemon` | 10 | 2. Go over everything in `conf`. Make sure `pid_file_path` matches `PIDFILE` from `tox_dht_bootstrap_server_daemon` |
11 | 11 | ||
12 | 3. Execute: | 12 | 3. Execute: |
13 | ``` | 13 | ``` |
14 | mv tox-dht-bootstrap-server-daemon /etc/init.d/tox-dht-bootstrap-server-daemon | 14 | mv tox_dht_bootstrap_server_daemon /etc/init.d/tox_dht_bootstrap_server_daemon |
15 | ``` | 15 | ``` |
16 | 16 | ||
17 | 4. Give the right permissions to this file: | 17 | 4. Give the right permissions to this file: |
18 | ``` | 18 | ``` |
19 | chmod 755 /etc/init.d/tox-dht-bootstrap-server-daemon | 19 | chmod 755 /etc/init.d/tox_dht_bootstrap_server_daemon |
20 | ``` | 20 | ``` |
21 | 21 | ||
22 | 5. Execute: | 22 | 5. Execute: |
23 | ``` | 23 | ``` |
24 | update-rc.d tox-dht-bootstrap-server-daemon defaults | 24 | update-rc.d tox_dht_bootstrap_server_daemon defaults |
25 | ``` | 25 | ``` |
26 | 26 | ||
27 | 6. Start the service: | 27 | 6. Start the service: |
28 | ``` | 28 | ``` |
29 | service tox-dht-bootstrap-server-daemon start | 29 | service tox_dht_bootstrap_server_daemon start |
30 | ``` | 30 | ``` |
31 | 31 | ||
32 | 7. Verify that the service is running: | 32 | 7. Verify that the service is running: |
33 | ``` | 33 | ``` |
34 | service tox-dht-bootstrap-server-daemon status | 34 | service tox_dht_bootstrap_server_daemon status |
35 | ``` | 35 | ``` |
36 | 36 | ||
37 | -- | 37 | -- |
38 | 38 | ||
39 | You can see daemon's log with | 39 | You can see daemon's log with |
40 | ``` | 40 | ``` |
41 | grep "tox-dht-bootstrap-server-daemon" /var/log/syslog | 41 | grep "tox_dht_bootstrap_server_daemon" /var/log/syslog |
42 | ``` | 42 | ``` |
43 | 43 | ||
44 | **Note that system log is where you find your public key** | 44 | **Note that system log is where you find your public key** |
@@ -49,12 +49,12 @@ grep "tox-dht-bootstrap-server-daemon" /var/log/syslog | |||
49 | 49 | ||
50 | 1. Check the log for errors with | 50 | 1. Check the log for errors with |
51 | ``` | 51 | ``` |
52 | grep "tox-dht-bootstrap-server-daemon" /var/log/syslog | 52 | grep "tox_dht_bootstrap_server_daemon" /var/log/syslog |
53 | ``` | 53 | ``` |
54 | 54 | ||
55 | 2. Check that paths in the beginning of `/etc/init.d/tox-dht-bootstrap-server-daemon` are valid | 55 | 2. Check that paths in the beginning of `/etc/init.d/tox_dht_bootstrap_server_daemon` are valid |
56 | 56 | ||
57 | 3. Make sure that `PIDFILE` from `/etc/init.d/tox-dht-bootstrap-server-daemon` matches with the `pid_file_path` from `conf` | 57 | 3. Make sure that `PIDFILE` from `/etc/init.d/tox_dht_bootstrap_server_daemon` matches with the `pid_file_path` from `conf` |
58 | 58 | ||
59 | 4. Make sure you have write premmision to keys and pid files | 59 | 4. Make sure you have write premmision to keys and pid files |
60 | 60 | ||