mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-25 05:26:50 +00:00
fix(deploy): use standard rustfs log directory (#2491)
Signed-off-by: 80347547 <jianglong@oppo.com> Co-authored-by: 80347547 <jianglong@oppo.com>
This commit is contained in:
@@ -30,8 +30,8 @@ EnvironmentFile=-/etc/default/rustfs
|
||||
ExecStart=/usr/local/bin/rustfs $RUSTFS_VOLUMES $RUSTFS_OPTS
|
||||
|
||||
# service log configuration
|
||||
StandardOutput=append:/data/deploy/rust/logs/rustfs.log
|
||||
StandardError=append:/data/deploy/rust/logs/rustfs-err.log
|
||||
StandardOutput=append:/var/log/rustfs/rustfs.log
|
||||
StandardError=append:/var/log/rustfs/rustfs-err.log
|
||||
|
||||
# resource constraints
|
||||
LimitNOFILE=1048576
|
||||
@@ -58,7 +58,7 @@ ProtectKernelModules=true
|
||||
ProtectControlGroups=true
|
||||
RestrictSUIDSGID=true
|
||||
RestrictRealtime=true
|
||||
ReadWritePaths=/data/rustfs
|
||||
ReadWritePaths=/data/rustfs /var/log/rustfs
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Reference in New Issue
Block a user