Complement the README file.
This commit is contained in:
parent
10391fd746
commit
47c88140c3
@ -2,7 +2,6 @@ import os
|
||||
import requests
|
||||
import time
|
||||
import selenium.common.exceptions
|
||||
import urllib3
|
||||
import logging
|
||||
from dotenv import load_dotenv
|
||||
from selenium import webdriver
|
||||
|
18
README.md
18
README.md
@ -19,7 +19,23 @@ BUCT_AUTHENTICATION_PASSWORD=校园网密码
|
||||
## 关于service
|
||||
|
||||
由于用到了logging。所以service里面要加上`WorkingDirectory=/path/to/programe`来确保文件可以正常写入 。
|
||||
出错先找找权限问题,我应该是直接给了755。
|
||||
出错先找找权限问题,我应该是直接给了755。这里是一个servivce的配置文件例子。
|
||||
```YAML
|
||||
[Unit]
|
||||
Description=Auto authentication.
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/path/to/your/python /path/to/your/program
|
||||
WorkingDirectory=/path/to/your/program
|
||||
User=Your_User
|
||||
Restart=always
|
||||
RestartSec=60
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user