Skip to content

Commit e6fabfe

Browse files
committed
fix: debian path in dragonfly.service (#4594)
Split the rpm service file from debian. Fixes #4593 Signed-off-by: Roman Gershman <roman@dragonflydb.io>
1 parent a371609 commit e6fabfe

File tree

2 files changed

+44
-2
lines changed

2 files changed

+44
-2
lines changed

tools/packaging/debian/dragonfly.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Documentation=
66
[Service]
77
Type=simple
88
EnvironmentFile=-/etc/dragonfly/environment
9-
ExecStart=/usr/local/bin/dragonfly --flagfile=/etc/dragonfly/dragonfly.conf
9+
ExecStart=/usr/bin/dragonfly --flagfile=/etc/dragonfly/dragonfly.conf
1010
PIDFile=/var/run/dragonfly/dragonfly.pid
1111
TimeoutStopSec=infinity
1212
Restart=always

tools/packaging/rpm/dragonfly.service

Lines changed: 0 additions & 1 deletion
This file was deleted.

tools/packaging/rpm/dragonfly.service

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
[Unit]
2+
Description=Modern and fast key-value store
3+
After=network.target
4+
Documentation=
5+
6+
[Service]
7+
Type=simple
8+
EnvironmentFile=-/etc/dragonfly/environment
9+
ExecStart=/usr/local/bin/dragonfly --flagfile=/etc/dragonfly/dragonfly.conf
10+
PIDFile=/var/run/dragonfly/dragonfly.pid
11+
TimeoutStopSec=infinity
12+
Restart=always
13+
User=dfly
14+
Group=dfly
15+
RuntimeDirectory=dragonfly
16+
RuntimeDirectoryMode=2755
17+
18+
UMask=007
19+
PrivateTmp=yes
20+
LimitNOFILE=262144
21+
PrivateDevices=yes
22+
ProtectHome=yes
23+
ProtectSystem=full
24+
25+
ReadWritePaths=-/var/lib/dragonfly
26+
ReadWritePaths=-/var/log/dragonfly
27+
ReadWritePaths=-/var/run/dragonfly
28+
29+
NoNewPrivileges=true
30+
CapabilityBoundingSet=CAP_SETGID CAP_SETUID CAP_SYS_RESOURCE
31+
MemoryDenyWriteExecute=true
32+
ProtectKernelModules=true
33+
ProtectKernelTunables=true
34+
ProtectControlGroups=true
35+
RestrictRealtime=true
36+
RestrictNamespaces=true
37+
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
38+
39+
40+
41+
[Install]
42+
WantedBy=multi-user.target
43+
Alias=dragonfly.service

0 commit comments

Comments
 (0)