From 1f64ef27cb8aaf26e29275ac12edb44582372054 Mon Sep 17 00:00:00 2001 From: laoxong Date: Sat, 20 Nov 2021 18:29:14 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=9B=E7=A8=8B=E5=AE=88=E6=8A=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 ++ README.md | 24 ++++++++++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/.gitignore b/.gitignore index d015b3c..828a097 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ /credentials.py /tmp_img +/.idea +/__pycache \ No newline at end of file diff --git a/README.md b/README.md index f954e18..52d2635 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,30 @@ Fediverse-Bridge 项目主要目的是从其他地方自动转发至Misskey [ybw2016v/bilibili2notes](https://github.com/ybw2016v/bilibili2notes) +进程守护: +``` +cat <<'TEXT' > /etc/systemd/system/fediversebridge.service +[Unit] +Description=TG to misskey daemon +After=network.target + +[Install] +WantedBy=multi-user.target + +[Service] +Type=simple +WorkingDirectory=/root/Fediverse-Bridge +ExecStart=/usr/bin/python3 -m main.py +Restart=always +TEXT +``` +将`WorkingDirectory`修改为程序所在目录, +在通过进程守护运行前请手动运行一次,设置配置文件! +通过 systemctl start fediversebridge 启动 +systemctl enable fediversebridge 设置开机自起 +关闭 systemctl stop fediversebridge +禁用开机自起: systemctl disable fediversebridge + 原README.md
cyborg-ubyvtsya/telegram-mastodon-bridge Readme.md