[Unit] Description=Memcached Daemon After=network.target [Service] User=memcached # Remove '-l 127.0.0.1' to listen on all addresses ExecStart=/usr/bin/memcached -l 127.0.0.1 -o modern Restart=always PrivateTmp=yes PrivateDevices=yes ProtectSystem=full MemoryDenyWriteExecute=yes [Install] WantedBy=multi-user.target