mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-11-14 03:57:15 +00:00
redis: Create state directory in systemd service
Configures the systemd service file for redis to create the required state directory before redis starts. Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
1 parent
fb7023bd3c
commit
7e7f670f4b
2 files changed
+2
No files matched your search
@@ -10,6 +10,7 @@ ExecStop=/usr/bin/redis-cli shutdown
|
||||
Restart=always
|
||||
LimitNOFILE=10032
|
||||
Type=notify
|
||||
StateDirectory=redis
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
@@ -9,6 +9,7 @@ ExecStart=/usr/bin/redis-server /etc/redis/redis.conf
|
||||
ExecStop=/usr/bin/redis-cli shutdown
|
||||
Restart=always
|
||||
LimitNOFILE=10032
|
||||
StateDirectory=redis
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Reference in new issue
Block a user