You are not logged in.

#1 2015-03-09 10:53:47

kotnik
Member
From: France
Registered: 2011-10-19
Posts: 34

[SOLVED] Redis failing to start on boot

Content of redis.service:

[Unit]
Description=Advanced key-value store
After=network.target

[Service]
User=redis
Group=redis
ExecStart=/usr/bin/redis-server /etc/redis.conf
ExecStop=/usr/bin/redis-cli shutdown
CapabilityBoundingSet=
PrivateTmp=true
PrivateDevices=true
ProtectSystem=full
ProtectHome=true
NoNewPrivileges=true
RuntimeDirectory=redis
RuntimeDirectoryMode=700

[Install]
WantedBy=multi-user.target

On every boot:

Mar 09 10:03:17 carpo systemd[1]: redis.service: main process exited, code=exited, status=233/RUNTIME_DIRECTORY
Mar 09 10:03:17 carpo systemd[702]: Failed at step RUNTIME_DIRECTORY spawning /usr/bin/redis-cli: File exists
Mar 09 10:03:17 carpo systemd[1]: redis.service: control process exited, code=exited status=233
Mar 09 10:03:17 carpo systemd[1]: Unit redis.service entered failed state.
Mar 09 10:03:17 carpo systemd[1]: redis.service failed.

Restarting it manually after the boot starts it properly. RuntimeDirectory was added recently by the package. Directory /run is not persistant:

# mount | grep -e '^run'
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)

I am stuck on figuring out what happens here. Did anybody else have this issue?

Last edited by kotnik (2015-03-18 09:44:48)


It's all GNU to me.

Offline

#2 2015-03-10 05:21:48

sharow
Member
From: Japan
Registered: 2015-03-10
Posts: 3

Re: [SOLVED] Redis failing to start on boot

same here.

I add Type=forking provisionally

[Service]
Type=forking
...

this works for me.

Offline

#3 2015-03-11 09:25:03

kotnik
Member
From: France
Registered: 2011-10-19
Posts: 34

Re: [SOLVED] Redis failing to start on boot

Thanks for the hint, sharow.

But it didn't help in my case, still not starting after reboot.


It's all GNU to me.

Offline

#4 2015-03-11 09:50:04

sharow
Member
From: Japan
Registered: 2015-03-10
Posts: 3

Re: [SOLVED] Redis failing to start on boot

or check /etc/redis.conf and redis.conf.pacnew.
daemonize option changed to no recently.

related: https://bugs.archlinux.org/task/44067

Last edited by sharow (2015-03-11 09:56:58)

Offline

#5 2015-03-18 09:44:27

kotnik
Member
From: France
Registered: 2011-10-19
Posts: 34

Re: [SOLVED] Redis failing to start on boot

Thank you for pointing me to that issue.

Issue is solved in version 2.8.19-4.


It's all GNU to me.

Offline

Board footer

Powered by FluxBB