mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-08 03:49:57 +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
|
Restart=always
|
||||||
LimitNOFILE=10032
|
LimitNOFILE=10032
|
||||||
Type=notify
|
Type=notify
|
||||||
|
StateDirectory=redis
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ ExecStart=/usr/bin/redis-server /etc/redis/redis.conf
|
|||||||
ExecStop=/usr/bin/redis-cli shutdown
|
ExecStop=/usr/bin/redis-cli shutdown
|
||||||
Restart=always
|
Restart=always
|
||||||
LimitNOFILE=10032
|
LimitNOFILE=10032
|
||||||
|
StateDirectory=redis
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|||||||
Reference in New Issue
Block a user