Automatic config file creation: mark {{Out of date}}
← Older revision
Revision as of 21:52, 7 November 2016
(One intermediate revision by the same user not shown)
Line 63:
Line 63:
===Automatic config file creation===
===Automatic config file creation===
−
The
{{
AUR
|
rslsync-autoconfig}}
{{
Broken package link
|
package not found}} package provides a systemd user service ({{ic|rslsync
-autoconfig
.service
}}
) which, if enabled, triggers when a user's {{ic|rslsync
.
service
}}
starts and creates a config file with default values if it does not already exist.
+
{{
Out of date
|
''BitTorrent Sync'' is now ''Resilio''. Information about BitTorrent Sync and its
{{
AUR
|
btsync
-autoconfig}}
package
.
+
}}
−
{{note| If the config file was generated by {{AUR|
rslsync
-autoconfig}}{{Broken package link|package not found}} it will be configured with a different port. Rather than 8888, the port for the user's instance of {{ic|
rslsync
}} will be {{ic|7889 + $UID}}. If your {{ic|$UID}} is "1000", the port will be 8889.}}
+
+
The {{AUR|btsync-autoconfig}}{{Broken package link|package not found}} package provides a systemd user service ({{ic|btsync-autoconfig.service}}) which, if enabled, triggers when a user's {{ic|btsync.service}} starts and creates a config file with default values if it does not already exist.
+
+
{{note| If the config file was generated by {{AUR|
btsync
-autoconfig}}{{Broken package link|package not found}} it will be configured with a different port. Rather than 8888, the port for the user's instance of {{ic|
btsync
}} will be {{ic|7889 + $UID}}. If your {{ic|$UID}} is "1000", the port will be 8889.}}
The install script enables the service for all users by default. Although disabling it defeats most of its purpose, it can be disabled using
The install script enables the service for all users by default. Although disabling it defeats most of its purpose, it can be disabled using
−
# systemctl --global disable
rslsync
-autoconfig.service
+
# systemctl --global disable
btsync
-autoconfig.service
Individual users can then enable it if they like:
Individual users can then enable it if they like:
−
$ systemctl --user enable
rslsync
-autoconfig.service
+
$ systemctl --user enable
btsync
-autoconfig.service
−
{{ic|
rslsync
-autoconfig.service}} creates {{ic|~/.config/
rslsync
/
rslsync
.conf}} if it does not exist, and guesses some default values of the settings:
+
{{ic|
btsync
-autoconfig.service}} creates {{ic|~/.config/
btsync
/
btsync
.conf}} if it does not exist, and guesses some default values of the settings:
* device_name: {{ic|$USER@$HOSTNAME}}
* device_name: {{ic|$USER@$HOSTNAME}}
−
* storage_path: {{ic|~/.
rslsync
}}
+
* storage_path: {{ic|~/.
btsync
}}
* webui/login: {{ic|$USER/password}}
* webui/login: {{ic|$USER/password}}