Files
rustfs/deploy/build/rustfs.service
T
RustFS 54779fa132 feat(pools): add maintenance mode, config/preflight checks, and zero-downtime live hot-reload (#9755)
* feat(pools): add maintenance mode, config/preflight checks, and zero-downtime live hot-reload

* fix(admin): restrict pool check/preflight to DecommissionAdminAction and harden audit logging

* fix(pools): harden security, pending-commit retry convergence, cutover isolation, and subsystem handoff

* feat(gateway): bump rustfs/gateway pin to ac50e9af and mount pool hot-reload native routes

* style(ecstore): sort conditional import in local commit module

* fix(ecstore): replace Error::other(format!) in pool reload with stable typed errors

* test(pools): avoid literal PEM header in non-env config redaction test
2026-11-29 23:51:14 +08:00

64 lines
1.6 KiB
Desktop File

[Unit]
Description=RustFS Object Storage Server
Documentation=https://rustfs.com/docs/
After=network-online.target
Wants=network-online.target
# If you're using a database, you'll need to add the corresponding dependencies
# After=postgresql.service
# Requires=postgresql.service
[Service]
Type=notify-reload
ReloadSignal=SIGHUP
NotifyAccess=main
User=rustfs
Group=rustfs
# working directory
WorkingDirectory=/opt/rustfs
# Environment-driven startup.
# rustfs reads address, volumes, console, credentials, and other runtime settings
# from RUSTFS_* variables. See `../config/rustfs.env` for an example template.
EnvironmentFile=/etc/default/rustfs
ExecStart=/usr/bin/rustfs server
# Reload is synchronous via Type=notify-reload + ReloadSignal=SIGHUP (RELOADING=1 / MONOTONIC_USEC / READY=1).
TimeoutReloadSec=120s
# service log configuration
LogsDirectory=rustfs
StandardOutput=journal
StandardError=journal
# resource constraints
LimitNOFILE=1048576
LimitNPROC=32768
TasksMax=infinity
# restart the policy
Restart=always
RestartSec=10s
# graceful exit configuration
# Type=notify waits for READY=1, so startup timeout must cover RustFS initialization
# plus runtime readiness checks on slower disks or cold starts.
TimeoutStartSec=120s
TimeoutStopSec=45s
# security settings
NoNewPrivileges=true
ProtectSystem=full
ProtectHome=true
PrivateTmp=true
PrivateDevices=true
ProtectClock=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=true
RestrictSUIDSGID=true
RestrictRealtime=true
ReadWritePaths=/data/rustfs /var/log/rustfs
[Install]
WantedBy=multi-user.target