Skip to content

Instantly share code, notes, and snippets.

@ricsiga
Created May 4, 2016 11:57
Show Gist options
  • Save ricsiga/0be5434cae0fabfeaa657871a12cfb8e to your computer and use it in GitHub Desktop.
Save ricsiga/0be5434cae0fabfeaa657871a12cfb8e to your computer and use it in GitHub Desktop.
repcached systemd unit file example
[Unit]
Description=repcached - add data replication feature to memcached 1.2.x
After=network.target
[Service]
ExecStart=/opt/repcached/bin/memcached -m 256 -p 11211 -u root -P /var/run/memcachedrep.pid -x 1.2.3.4 -d
Type=forking
PIDFile=/var/run/memcachedrep.pid
Restart=always
[Install]
WantedBy=default.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment