You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: other/bootstrap_daemon/README.md
+81-11Lines changed: 81 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,29 @@
1
1
#Instructions
2
2
3
3
-[For `systemd` users](#systemd)
4
+
-[Setting up](#systemd-setting-up)
5
+
-[Updating](#systemd-updating)
4
6
-[Troubleshooting](#systemd-troubleshooting)
5
7
<br>
6
8
-[For `init.d` users](#initd)
9
+
-[Setting up](#initd-setting-up)
10
+
-[Updating](#initd-updating)
7
11
-[Troubleshooting](#initd-troubleshooting)
8
12
<br>
9
13
-[For `Docker` users](#docker)
14
+
-[Setting up](#docker-setting-up)
15
+
-[Updating](#docker-updating)
10
16
-[Troubleshooting](#docker-troubleshooting)
11
17
18
+
12
19
These instructions are primarily tested on Debian Linux, Wheezy for init.d and Jessie for systemd, but they should work on other POSIX-compliant systems too.
13
20
14
21
15
22
<aname="systemd" />
16
-
##For `systemd` users:
23
+
##For `systemd` users
24
+
25
+
<aname="systemd-setting-up" />
26
+
###Setting up
17
27
18
28
For security reasons we run the daemon under its own user.
19
29
@@ -58,8 +68,31 @@ Get your public key and check that the daemon initialized correctly:
58
68
sudo grep "tox-bootstrapd" /var/log/syslog
59
69
```
60
70
71
+
<aname="systemd-updating" />
72
+
###Updating
73
+
74
+
You want to make sure that the daemon uses the newest toxcore, as there might have been some changes done to the DHT, so it's advised to update the daemon at least once every month.
75
+
76
+
To update the daemon first stop it:
77
+
78
+
```sh
79
+
sudo systemctl stop tox-bootstrapd.service
80
+
```
81
+
82
+
Then update your toxcore git repository, rebuild the toxcore and the daemon and make sure to install them.
83
+
84
+
Check if `tox-bootstrapd.service` in toxcore git repository was modified since the last time you copied it, as you might need to update it too.
85
+
86
+
After all of this is done, simply start the daemon back again:
For security reasons we run the daemon under its own user.
89
125
90
126
Create a new user by executing the following:
@@ -128,8 +164,29 @@ Get your public key and check that the daemon initialized correctly:
128
164
sudo grep "tox-bootstrapd" /var/log/syslog
129
165
```
130
166
167
+
<aname="initd-updating" />
168
+
###Updating
169
+
170
+
You want to make sure that the daemon uses the newest toxcore, as there might have been some changes done to the DHT, so it's advised to update the daemon at least once every month.
171
+
172
+
To update the daemon first stop it:
173
+
174
+
```sh
175
+
sudo service tox-bootstrapd stop
176
+
```
177
+
178
+
Then update your toxcore git repository, rebuild the toxcore and the daemon and make sure to install them.
179
+
180
+
Check if `tox-bootstrapd.sh` in toxcore git repository was modified since the last time you copied it, as you might need to update it too.
181
+
182
+
After all of this is done, simply start the daemon back again:
We create a new user and protect its home directory in order to mount it in the Docker image, so that the kyepair the daemon uses would be shared with the host system, which makes it less likely that you would loose the keypair while playing with the Docker container.
227
+
We create a new user and protect its home directory in order to mount it in the Docker image, so that the kyepair the daemon uses would be stored on the host system, which makes it less likely that you would loose the keypair while playing with or updating the Docker container.
168
228
169
229
You can check logs for your public key or any errors:
170
230
```sh
171
231
sudo docker logs tox-bootstrapd
172
232
```
173
233
174
-
If you are an experienced Docker user and have a version of Docker that supports `docker cp` both host->container and container->host directions, you might want to skip the directory mounting part and just do:
234
+
Note that the Docker container runs a script which pulls a list of bootstrap nodes off https://nodes.tox.chat/ and adds them in the config file.
235
+
236
+
<aname="docker-updating" />
237
+
###Updating
238
+
239
+
You want to make sure that the daemon uses the newest toxcore, as there might have been some changes done to the DHT, so it's advised to update the daemon at least once every month.
240
+
241
+
To update the daemon, all you need is to erase current container with its image:
The keypair is stored in `/var/lib/tox-bootstrapd/keys` file, so if you skipped the directory mounting part and want a new Docker container to retain the same public key that from an old one, just copy/overwrite it from the old container.
249
+
Then rebuild and run the image again:
183
250
184
-
Note that the Docker container runs a script which pulls a list of bootstrap nodes off https://nodes.tox.chat/ and adds them in the config file.
0 commit comments