Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

开机自动启动程序 #41

Open
Mitchell08 opened this issue Feb 13, 2023 · 1 comment
Open

开机自动启动程序 #41

Mitchell08 opened this issue Feb 13, 2023 · 1 comment

Comments

@Mitchell08
Copy link

请教如何开机自动启动程序,使用二进制部署,如下图。谢谢大家!

image

@Debcharon
Copy link

Debcharon commented Mar 20, 2023

寫進 Systemd 服務。我將二進制文件放在 /usr/local/bin ,配置文件和 data 放在 /usr/local/etc 路徑下,大致如下

[Unit]
Description=E5SubBot Service
After=network.target

[Service]
WorkingDirectory=/usr/local/etc/E5SubBot
ExecStart=/usr/local/bin/E5SubBot
Restart=on-failure

[Install]

WantedBy=multi-user.target

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants