Skip to content

Instantly share code, notes, and snippets.

View kleajmp's full-sized avatar

kleajmp kleajmp

View GitHub Profile
@mkocikowski
mkocikowski / gist:aeca878d58d313e902bb
Last active June 17, 2024 14:44
Setting up Redis to run as a daemon under systemd

This can be used to daemonize anything that would normally run in the foreground; I picked Redis. Put this in /etc/systemd/system/redis.service:

[Unit]
Description=Redis
After=syslog.target

[Service]
ExecStart=/usr/local/bin/redis-server /etc/redis/redis.conf
RestartSec=5s