mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 02:15:45 +02:00
fix: debian path in dragonfly.service (#4594)
Split the rpm service file from debian. Fixes #4593 Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
parent
a371609e83
commit
e6fabfef6f
2 changed files with 44 additions and 2 deletions
|
@ -6,7 +6,7 @@ Documentation=
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
EnvironmentFile=-/etc/dragonfly/environment
|
EnvironmentFile=-/etc/dragonfly/environment
|
||||||
ExecStart=/usr/local/bin/dragonfly --flagfile=/etc/dragonfly/dragonfly.conf
|
ExecStart=/usr/bin/dragonfly --flagfile=/etc/dragonfly/dragonfly.conf
|
||||||
PIDFile=/var/run/dragonfly/dragonfly.pid
|
PIDFile=/var/run/dragonfly/dragonfly.pid
|
||||||
TimeoutStopSec=infinity
|
TimeoutStopSec=infinity
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
../debian/dragonfly.service
|
|
43
tools/packaging/rpm/dragonfly.service
Executable file
43
tools/packaging/rpm/dragonfly.service
Executable file
|
@ -0,0 +1,43 @@
|
||||||
|
[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
|
Loading…
Add table
Add a link
Reference in a new issue