valkey/valkey.service

22 lines
668 B
SYSTEMD
Raw Normal View History

2024-04-26 10:54:01 +00:00
[Unit]
Description=Valkey persistent key-value database
After=network.target
After=network-online.target
Wants=network-online.target
[Service]
EnvironmentFile=-/etc/sysconfig/valkey
# moved $OPTIONS to start because the --dir option only overrides the config if it is passed before
# the config to the binary. I think this is a bug and will be reporting it upstream as all other
# opts don't care about the order for the override to work
ExecStart=/usr/bin/valkey-server /etc/valkey/valkey.conf --daemonize no --supervised systemd $OPTIONS
Type=notify
User=valkey
Group=valkey
RuntimeDirectory=valkey
RuntimeDirectoryMode=0755
[Install]
WantedBy=multi-user.target