mirror of
https://github.com/XTLS/Xray-install.git
synced 2025-12-10 02:09:52 +00:00
[Feature Addition] Introducing the --logrotate Option for Xray's Enhanced Log Rotation (#62)
* [Feat] Add Option To Install with Logrotate * Update: Using built-in user detection * Changes: 1.Default retention time 2.Check Logrotate after Check User https://github.com/XTLS/Xray-core/discussions/2369#discussioncomment-6554217
This commit is contained in:
12
README.md
12
README.md
@@ -48,6 +48,18 @@ Notice: Xray will NOT log to `/var/log/xray/*.log` by default. Configure `"log"`
|
||||
# bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install --beta
|
||||
```
|
||||
|
||||
**Install & Upgrade Xray-core and geodata with `logrotate`**
|
||||
|
||||
```
|
||||
# bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install --logrotate
|
||||
```
|
||||
```
|
||||
installed: /etc/systemd/system/logrotate@.service
|
||||
installed: /etc/systemd/system/logrotate@.timer
|
||||
|
||||
installed: /etc/logrotate.d/xray
|
||||
```
|
||||
|
||||
**Install & Upgrade Xray-core and geodata with `User=root`, which will overwrite `User` in existing service files**
|
||||
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user