mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-10 18:05:44 +02:00
Also, fix the deadlock problem on shutdown on Oracle Linux 5.15 Fixes #4505 Signed-off-by: Roman Gershman <roman@dragonflydb.io>
43 lines
938 B
Desktop File
Executable file
43 lines
938 B
Desktop File
Executable file
[Unit]
|
|
Description=Modern and fast key-value store
|
|
After=network.target
|
|
Documentation=
|
|
|
|
[Service]
|
|
Type=simple
|
|
EnvironmentFile=-/etc/dragonfly/environment
|
|
ExecStart=/usr/local/bin/dragonfly --flagfile=/etc/dragonfly/dragonfly.conf
|
|
PIDFile=/var/run/dragonfly/dragonfly.pid
|
|
TimeoutStopSec=infinity
|
|
Restart=always
|
|
User=dfly
|
|
Group=dfly
|
|
RuntimeDirectory=dragonfly
|
|
RuntimeDirectoryMode=2755
|
|
|
|
UMask=007
|
|
PrivateTmp=yes
|
|
LimitNOFILE=262144
|
|
PrivateDevices=yes
|
|
ProtectHome=yes
|
|
ProtectSystem=full
|
|
|
|
ReadWritePaths=-/var/lib/dragonfly
|
|
ReadWritePaths=-/var/log/dragonfly
|
|
ReadWritePaths=-/var/run/dragonfly
|
|
|
|
NoNewPrivileges=true
|
|
CapabilityBoundingSet=CAP_SETGID CAP_SETUID CAP_SYS_RESOURCE
|
|
MemoryDenyWriteExecute=true
|
|
ProtectKernelModules=true
|
|
ProtectKernelTunables=true
|
|
ProtectControlGroups=true
|
|
RestrictRealtime=true
|
|
RestrictNamespaces=true
|
|
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
|
|
|
|
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
Alias=dragonfly.service
|