From 3591eededc98e2044eaced2cd6abcbece9369c66 Mon Sep 17 00:00:00 2001 From: abraunegg Date: Sun, 3 Jul 2022 21:03:27 +1000 Subject: [PATCH] Fix --display-config after http/2 change (#2028) * Fix --display-config after http/2 change * Update advanced-usage.md --- docs/advanced-usage.md | 12 ++++++++++++ src/main.d | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/advanced-usage.md b/docs/advanced-usage.md index 8f404869..2e5fd858 100644 --- a/docs/advanced-usage.md +++ b/docs/advanced-usage.md @@ -114,6 +114,13 @@ ExecStart=/usr/local/bin/onedrive --monitor --confdir="/home/myusername/.config/ ``` Then you can safely run these commands: +#### Custom systemd service on Red Hat Enterprise Linux, CentOS Linux +```text +systemctl enable onedrive-my-new-config +systemctl start onedrive-my-new-config +``` + +#### Custom systemd service on Arch, Ubuntu, Debian, OpenSuSE, Fedora ```text systemctl --user enable onedrive-my-new-config systemctl --user start onedrive-my-new-config @@ -124,6 +131,11 @@ systemctl --user enable onedrive-my-new-config@myusername.service systemctl --user start onedrive-my-new-config@myusername.service ``` +#### Viewing systemd logs for the custom service +```text +journalctl --unit=onedrive-my-new-config -f +``` + Repeat these steps for each OneDrive new account that you wish to use. ## Configuring the client to use multiple OneDrive accounts / configurations using Docker diff --git a/src/main.d b/src/main.d index 768a6eb9..c53ebbd6 100644 --- a/src/main.d +++ b/src/main.d @@ -679,7 +679,7 @@ int main(string[] args) writeln("Config option 'azure_ad_endpoint' = ", cfg.getValueString("azure_ad_endpoint")); writeln("Config option 'azure_tenant_id' = ", cfg.getValueString("azure_tenant_id")); writeln("Config option 'user_agent' = ", cfg.getValueString("user_agent")); - writeln("Config option 'force_http_2' = ", cfg.getValueBool("force_http_2")); + writeln("Config option 'force_http_11' = ", cfg.getValueBool("force_http_11")); writeln("Config option 'debug_https' = ", cfg.getValueBool("debug_https")); writeln("Config option 'rate_limit' = ", cfg.getValueLong("rate_limit")); writeln("Config option 'operation_timeout' = ", cfg.getValueLong("operation_timeout"));