浏览代码

change: 1h circuit

Dew-OF-Aurora 3 周之前
父节点
当前提交
89f6c67600
共有 3 个文件被更改,包括 5 次插入5 次删除
  1. 1 1
      README.md
  2. 2 2
      scripts/install_debian.sh
  3. 2 2
      systemd/vmess-domain-rotator.timer

+ 1 - 1
README.md

@@ -140,7 +140,7 @@ If the whole subscription file is itself base64-encoded, add:
 ### systemd timer
 
 Use files under `systemd/` and adjust paths/user.
-Default timer interval in this repo is `12h`.
+Default timer interval in this repo is `1h`.
 
 ### Debian install/uninstall scripts
 

+ 2 - 2
scripts/install_debian.sh

@@ -8,7 +8,7 @@ RUN_GROUP="vmessrotator"
 APP_DIR_SET="0"
 RUN_USER_SET="0"
 RUN_GROUP_SET="0"
-INTERVAL="12h"
+INTERVAL="1h"
 INSTALL_DEPS="1"
 OVERWRITE_CONFIG="0"
 
@@ -25,7 +25,7 @@ Options:
   --app-dir <path>         Install directory (default: /opt/vmess-domain-rotator)
   --user <name>            Service user (default: vmessrotator)
   --group <name>           Service group (default: vmessrotator)
-  --interval <value>       Timer interval, e.g. 12h/10min (default: 12h)
+  --interval <value>       Timer interval, e.g. 1h/10min (default: 1h)
   --no-install-deps        Skip apt dependency install
   --overwrite-config       Overwrite existing config.json in app dir
   -h, --help               Show help

+ 2 - 2
systemd/vmess-domain-rotator.timer

@@ -1,9 +1,9 @@
 [Unit]
-Description=Run VMess Domain Rotator every 12 hours
+Description=Run VMess Domain Rotator every 1 hour
 
 [Timer]
 OnBootSec=2min
-OnUnitActiveSec=12h
+OnUnitActiveSec=1h
 AccuracySec=30s
 Unit=vmess-domain-rotator.service
 Persistent=true