saltstack-formulas / redis-formula

Redis state
http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
Other
40 stars 184 forks source link

[BUG] service fails on archlinux #87

Open noelmcloughlin opened 3 years ago

noelmcloughlin commented 3 years ago

Versions reports (master & minion)

Pillar / config used

None


Bug details

Describe the bug

● redis.service - Advanced key-value store
     Loaded: loaded (/usr/lib/systemd/system/redis.service; disabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Sat 2020-12-05 20:00:58 UTC; 4min 43s ago
   Main PID: 1150 (code=exited, status=1/FAILURE)

Dec 05 20:00:58 archlinux systemd[1]: Starting Advanced key-value store...
Dec 05 20:00:58 archlinux redis-server[1150]: *** FATAL CONFIG FILE ERROR (Redis 6.0.9) ***
Dec 05 20:00:58 archlinux redis-server[1150]: Reading the configuration file, at line 19
Dec 05 20:00:58 archlinux redis-server[1150]: >>> 'logfile /var/log/redis/redis.log'
Dec 05 20:00:58 archlinux redis-server[1150]: Can't open the log file: No such file or directory
Dec 05 20:00:58 archlinux systemd[1]: redis.service: Main process exited, code=exited, status=1/FAILURE
Dec 05 20:00:58 archlinux systemd[1]: redis.service: Failed with result 'exit-code'.
Dec 05 20:00:58 archlinux systemd[1]: Failed to start Advanced key-value store.

Steps to reproduce the bug

Expected behaviour

It should work on Archlinux

Attempts to fix the bug

86

Additional context

noelmcloughlin commented 3 years ago

Also need to change Type: notify to Type: simple in /lib/systemd/system/redis.service. I updated #81 with that fix.