OSDN Git Service

v2rayA: move default log path to `/var/log` v2raya-1.5.7
authorTianling Shen <cnsztl@immortalwrt.org>
Thu, 21 Apr 2022 04:00:10 +0000 (12:00 +0800)
committerTianling Shen <cnsztl@immortalwrt.org>
Thu, 21 Apr 2022 04:00:59 +0000 (12:00 +0800)
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
v2raya/files/v2raya.config
v2raya/files/v2raya.init

index 841b90a..08bd618 100644 (file)
@@ -16,7 +16,7 @@ config v2raya 'config'
        option log_level 'info'
 
        # The path of log file
-       option log_file '/tmp/v2raya.log'
+       option log_file '/var/log/v2raya.log'
 
        # Maximum number of days to keep log files
        option log_max_days '3'
index 826935d..252b9ce 100755 (executable)
@@ -44,7 +44,7 @@ start_service() {
        append_env_arg "config" "config" "/etc/v2raya"
        append_env_arg "config" "ipv6_support" "auto"
        append_env_arg "config" "log_level" "info"
-       append_env_arg "config" "log_file" "/tmp/v2raya.log"
+       append_env_arg "config" "log_file" "/var/log/v2raya.log"
        append_env_arg "config" "log_max_days" "3"
        append_env_arg "config" "v2ray_bin"
        append_env_arg "config" "v2ray_confdir"