From 23d6deeb172b04ed18dfd3caea830e98578785f2 Mon Sep 17 00:00:00 2001 From: Akshett Rai Jindal Date: Sun, 8 Oct 2023 15:34:25 +0530 Subject: [PATCH] rename watgbridge.service to watgbridge.service.sample --- .gitignore | 1 + README.md | 2 +- watgbridge.service => watgbridge.service.sample | 0 3 files changed, 2 insertions(+), 1 deletion(-) rename watgbridge.service => watgbridge.service.sample (100%) diff --git a/.gitignore b/.gitignore index 4fd5a52..a8b5448 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,4 @@ watgbridge-build/ downloads/ imports.go *.log +watgbridge.service diff --git a/README.md b/README.md index d6f407b..e2f3dd5 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,6 @@ PRs are welcome :) - Copy `sample_config.yaml` to `config.yaml` and fill the values, there are comments to help you. - Execute the binary by running `./watgbridge` - On first run, it will show QR code for logging into WhatsApp that can by scanned by the WhatsApp app in `Linked devices` -- It is recommended to restart the bot after every few hours becuase WhatsApp likes to disconnect a lot. So a Systemd service file has been provided. Edit the `User` and `ExecStart` according to your setup: +- It is recommended to restart the bot after every few hours becuase WhatsApp likes to disconnect a lot. So a sample Systemd service file has been provided (`watgbridge.service.sample`). Edit the `User` and `ExecStart` according to your setup: - If you do not have local bot API server, remove `tgbotapi.service` from the `After` key in `Unit` section. - This service file will restart the bot every 24 hours diff --git a/watgbridge.service b/watgbridge.service.sample similarity index 100% rename from watgbridge.service rename to watgbridge.service.sample