mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-04 14:39:54 +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:
@@ -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